Explorar o código

Merge pull request #134 from peda1337/fixGateway

Fix gateway
Martin Melik-Merkumians %!s(int64=8) %!d(string=hai) anos
pai
achega
e8704f914c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/src/ports/POSIX/networkconfig.c

+ 1 - 1
source/src/ports/POSIX/networkconfig.c

@@ -85,7 +85,7 @@ EipStatus ConfigureNetworkInterface(const char *const network_interface) {
   }
   fclose(file_handle);
 
-  if (inet_pton(AF_INET, gateway_string, gateway) == 1) {
+  if (inet_pton(AF_INET, gateway_string, &gateway) == 1) {
     if (gateway != LOOPBACK_BINARY) {
       interface_configuration_.gateway = gateway;
     } else {