From 5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Mon, 4 Mar 2002 19:18:27 +0000 Subject: use 127.0.0.1 instead of localhost in hosts.deny --- share/libmsec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/libmsec.py b/share/libmsec.py index eb5ddee..2a13c33 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -398,15 +398,15 @@ if \\fIarg\\fP = LOCAL and none if \\fIarg\\fP = NONE. To authorize the services if arg == ALL: _interactive and log(_('Authorizing all services')) hostsdeny.remove_line_matching('^ALL:ALL:DENY', 1) - hostsdeny.remove_line_matching('^ALL:ALL EXCEPT localhost:DENY', 1) + hostsdeny.remove_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY', 1) elif arg == NONE: _interactive and log(_('Disabling all services')) - hostsdeny.remove_line_matching('^ALL:ALL EXCEPT localhost:DENY', 1) + hostsdeny.remove_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY', 1) hostsdeny.replace_line_matching('^ALL:ALL:DENY$', 'ALL:ALL:DENY', 1) elif arg == LOCAL: _interactive and log(_('Disabling non local services')) hostsdeny.remove_line_matching('^ALL:ALL:DENY', 1) - hostsdeny.replace_line_matching('^ALL:ALL EXCEPT localhost:DENY$', 'ALL:ALL EXCEPT localhost:DENY', 1) + hostsdeny.replace_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY$', 'ALL:ALL EXCEPT 127.0.0.1:DENY', 1) else: error(_('authorize_services invalid argument: %s') % arg) -- cgit v1.2.1