Changeset 302 for trunk/wifidog/src/fw_iptables.c
- Timestamp:
- 12/19/04 14:18:08 (8 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog/src/fw_iptables.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/src/fw_iptables.c
r301 r302 164 164 for (auth_server = config->auth_servers; auth_server != NULL; 165 165 auth_server = auth_server->next) { 166 if (auth_server->last_ip == NULL || 167 strcmp(auth_server->last_ip, "0.0.0.0") == 0) { 168 iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->authserv_hostname); 169 } else { 170 iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->last_ip); 171 } 166 iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->authserv_hostname); 172 167 } 173 168
