Skip to content

Commit 43badfa

Browse files
author
jvazquez-r7
committed
Move the check_ipv6 call to the run metod
1 parent 05863cb commit 43badfa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/post/windows/manage/portproxy.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ def run
4141
return
4242
end
4343

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+
4450
return unless enable_portproxy
4551
fw_enable_ports
4652

@@ -53,12 +59,6 @@ def enable_portproxy
5359
'Columns' => ['LOCAL IP', 'LOCAL PORT', 'REMOTE IP', 'REMOTE PORT']
5460
)
5561

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-
6262
print_status("Setting PortProxy ...")
6363
netsh_args = "interface portproxy "
6464
netsh_args << "add #{datastore['TYPE']} "

0 commit comments

Comments
 (0)