diff options
Diffstat (limited to 'hicn-light/src/config/controlAddListener.c')
-rw-r--r-- | hicn-light/src/config/controlAddListener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/config/controlAddListener.c b/hicn-light/src/config/controlAddListener.c index 03900a861..2cabfd035 100644 --- a/hicn-light/src/config/controlAddListener.c +++ b/hicn-light/src/config/controlAddListener.c @@ -111,7 +111,7 @@ static CommandReturn _CreateListener(CommandParser *parser, CommandOps *ops, // Fill remaining payload fields addListenerCommand->listenerMode = mode; addListenerCommand->connectionType = type; - addListenerCommand->port = (uint16_t)atoi(port); + addListenerCommand->port = htons((uint16_t)atoi(port)); strcpy(addListenerCommand->symbolic, symbolic); // send message and receive response |