mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
Merge pull request #22 from hmenke/parsePort
fix: correct range condition for parsePort
This commit is contained in:
commit
06dfef794f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ func parsePort(section *ini.Section, keyName string) (int, error) {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if port >= 0 && port < 65536 {
|
if !(port >= 0 && port < 65536) {
|
||||||
return 0, errors.New("port should be >= 0 and < 65536")
|
return 0, errors.New("port should be >= 0 and < 65536")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue