mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
control/controlclient: remove a number literal in string slice offset
This commit is contained in:
parent
42e98d4edc
commit
19cc4f8b8e
@ -100,8 +100,9 @@ func (nm *NetworkMap) Concise() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
derp := p.DERP
|
derp := p.DERP
|
||||||
if strings.HasPrefix(derp, "127.3.3.40:") {
|
const derpPrefix = "127.3.3.40:"
|
||||||
derp = "D" + derp[11:]
|
if strings.HasPrefix(derp, derpPrefix) {
|
||||||
|
derp = "D" + derp[len(derpPrefix):]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Most of the time, aip is just one element, so format the
|
// Most of the time, aip is just one element, so format the
|
||||||
|
Loading…
Reference in New Issue
Block a user