Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit eb8d841

Browse files
committed
Remove validation checking of Port
Since it is declared as a uint16 any value is valid
1 parent fed4c81 commit eb8d841

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

config/sshproxy.go

-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ func (c SSHProxyConfig) Validate() error {
5151
if c.Server == "" {
5252
return newError("server", "server cannot be empty")
5353
}
54-
if c.Port == 0 || c.Port > 65535 {
55-
return newError("port", "invalid port number: %d", c.Port)
56-
}
5754
if c.Username == "" && !c.UsernamePassThrough {
5855
return newError("username", "username cannot be empty when usernamePassThrough is not set")
5956
}

0 commit comments

Comments
 (0)