File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
modules/post/windows/manage Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ def run
41
41
return
42
42
end
43
43
44
+ # Due to a bug in Windows XP you need to install IPv6
45
+ # http://support.microsoft.com/kb/555744/en-us
46
+ if sysinfo [ "OS" ] =~ /XP/
47
+ return unless check_ipv6
48
+ end
49
+
44
50
return unless enable_portproxy
45
51
fw_enable_ports
46
52
@@ -53,12 +59,6 @@ def enable_portproxy
53
59
'Columns' => [ 'LOCAL IP' , 'LOCAL PORT' , 'REMOTE IP' , 'REMOTE PORT' ]
54
60
)
55
61
56
- # Due to a bug in Windows XP you need to install IPv6
57
- # http://support.microsoft.com/kb/555744/en-us
58
- if sysinfo [ "OS" ] =~ /XP/
59
- return false if not check_ipv6
60
- end
61
-
62
62
print_status ( "Setting PortProxy ..." )
63
63
netsh_args = "interface portproxy "
64
64
netsh_args << "add #{ datastore [ 'TYPE' ] } "
You can’t perform that action at this time.
0 commit comments