diff options
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -882,9 +882,9 @@ void parse_interface(const char *arg, char *vianame, unsigned char *mask) memset(mask, 0xFF, vialen + 1); memset(mask + vialen + 1, 0, IFNAMSIZ - vialen - 1); for (i = 0; vianame[i]; i++) { - if (!isalnum(vianame[i]) - && vianame[i] != '_' - && vianame[i] != '.') { + if (vianame[i] == ':' || + vianame[i] == '!' || + vianame[i] == '*') { printf("Warning: wierd character in interface" " `%s' (No aliases, :, ! or *).\n", vianame); |