Changeset 284

Show
Ignore:
Timestamp:
11/21/04 11:06:31 (4 years ago)
Author:
aprilp
Message:

Oops, forgot it can't be empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/WIFIDOG_1_0_X/wifidog/src/fw_iptables.c

    r283 r284  
    9292    for (auth_server = config->auth_servers; auth_server != NULL; 
    9393                    auth_server = auth_server->next) { 
    94         iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", inet_ntoa(auth_server->last_ip)); 
     94        if (auth_server->last_ip) { 
     95            iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", inet_ntoa(auth_server->last_ip)); 
     96        } else { 
     97            iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->authserv_hostname); 
     98        } 
    9599    } 
    96100