mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
portlist: simplify slice expression.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
be6bcd59cd
commit
520e96afd1
@ -28,7 +28,7 @@ func parsePort(s string) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
portstr := s[i+1 : len(s)]
|
||||
portstr := s[i+1:]
|
||||
if portstr == "*" {
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user