File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
modules/post/windows/manage Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -95,20 +95,18 @@ def check_ipv6
95
95
if ipv6_installed ( )
96
96
print_status ( "IPv6 is already installed." )
97
97
return true
98
+ elsif not datastore [ 'IPV6_XP' ]
99
+ print_error ( "IPv6 is not installed. You need IPv6 to use portproxy." )
100
+ return false
98
101
else
99
- if not datastore [ 'IPV6_XP' ]
100
- print_error ( "IPv6 is not installed. You need IPv6 to use portproxy." )
102
+ print_status ( "Installing IPv6 ..." )
103
+ cmd_exec ( "netsh" , "interface ipv6 install" , 120 )
104
+ if not ipv6_installed
105
+ print_error ( "IPv6 was not successfully installed. Run it again." )
101
106
return false
102
- else
103
- print_status ( "Installing IPv6 ..." )
104
- cmd_exec ( "netsh" , "interface ipv6 install" , 120 )
105
- if not ipv6_installed
106
- print_error ( "IPv6 was not successfully installed. Run it again." )
107
- return false
108
- end
109
- print_good ( "IPv6 was successfully installed." )
110
- return true
111
107
end
108
+ print_good ( "IPv6 was successfully installed." )
109
+ return true
112
110
end
113
111
end
114
112
You can’t perform that action at this time.
0 commit comments