X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=3dab9a01157b5751c14a65f24fc3d82ae94ea94f;hp=a618e63f0d9158f78ba813b0efbb660599da8684;hb=aca70cd3c3fe787e62c618849e43f67b3870ac20;hpb=5f729f76f5a63114df582fc29f4189140c1e5ead diff --git a/src/tincd.c b/src/tincd.c index a618e63f..3dab9a01 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -221,7 +221,9 @@ static bool parse_options(int argc, char **argv) { break; case 'n': /* net name given */ - netname = xstrdup(optarg); + /* netname "." is special: a "top-level name" */ + netname = strcmp(optarg, ".") != 0 ? + xstrdup(optarg) : NULL; break; case 'o': /* option */