Skip to content

Commit f339510

Browse files
author
jvazquez-r7
committed
Use OptPort
1 parent ad8b6ec commit f339510

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/post/windows/manage/portproxy.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def initialize(info={})
2626

2727
register_options(
2828
[
29-
OptAddress.new('LOCAL_ADDRESS', [ true, 'IPv4/IPv6 address to which to listen.']),
29+
OptAddress.new('LOCAL_ADDRESS', [ true, 'IPv4/IPv6 address to which to listen.']),
3030
OptAddress.new('CONNECT_ADDRESS', [ true, 'IPv4/IPv6 address to which to connect.']),
31-
OptInt.new( 'CONNECT_PORT', [ true, 'Port number to which to connect.']),
32-
OptInt.new( 'LOCAL_PORT', [ true, 'Port number to which to listen.']),
33-
OptBool.new( 'IPV6_XP', [ true, 'Install IPv6 on Windows XP (needed for v4tov4).', true]),
34-
OptEnum.new( 'TYPE', [ true, 'Type of forwarding', 'v4tov4', ['v4tov4','v6tov6','v6tov4','v4tov6']])
31+
OptPort.new( 'CONNECT_PORT', [ true, 'Port number to which to connect.']),
32+
OptPort.new( 'LOCAL_PORT', [ true, 'Port number to which to listen.']),
33+
OptBool.new( 'IPV6_XP', [ true, 'Install IPv6 on Windows XP (needed for v4tov4).', true]),
34+
OptEnum.new( 'TYPE', [ true, 'Type of forwarding', 'v4tov4', ['v4tov4','v6tov6','v6tov4','v4tov6']])
3535
], self.class)
3636
end
3737

0 commit comments

Comments
 (0)