Merge pull request #169 from HorseLuke/fix-edge-conf-read-201907

Fix: setOption pass wrong argument in edge node
This commit is contained in:
Emanuele Faranda 2019-07-29 08:10:53 +00:00 committed by GitHub
commit be8c2ec9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
edge.c
View File

@ -287,7 +287,7 @@ static int setOption(int optkey, char *optargument, n2n_priv_config_t *ec, n2n_e
} }
case 'i': /* supernode registration interval */ case 'i': /* supernode registration interval */
conf->register_interval = atoi(optarg); conf->register_interval = atoi(optargument);
break; break;
#if defined(N2N_CAN_NAME_IFACE) #if defined(N2N_CAN_NAME_IFACE)