udhcpd: fix -v/-P mixup
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9107b63a7f
commit
406bd14416
@ -303,7 +303,7 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
|
||||
logmode |= LOGMODE_SYSLOG;
|
||||
}
|
||||
#if ENABLE_FEATURE_UDHCP_PORT
|
||||
if (opt & 4) { /* -P */
|
||||
if (opt & 8) { /* -P */
|
||||
SERVER_PORT = xatou16(str_P);
|
||||
CLIENT_PORT = SERVER_PORT + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user