summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables.c b/iptables.c
index 28917cf1..de2fdd6a 100644
--- a/iptables.c
+++ b/iptables.c
@@ -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);