mirror of https://github.com/tailscale/tailscale/
fix handler related and some nit
Signed-off-by: KevinLiang10 <37811973+KevinLiang10@users.noreply.github.com>pull/14141/head
parent
0a57051f2e
commit
550923d953
@ -1,22 +0,0 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package netmap
|
||||
|
||||
import "net/netip"
|
||||
|
||||
// IPServiceMappings maps IP addresses to service names. This is the inverse of
|
||||
// [ServiceIPMappings], and is used to inform clients which services is an VIP
|
||||
// address associated with. This is set to b.ipVIPServiceMap every time the
|
||||
// netmap is updated. This is used to reduce the cost for looking up the service
|
||||
// name for the dst IP address in the netStack packet processing workflow.
|
||||
//
|
||||
// This is of the form:
|
||||
//
|
||||
// {
|
||||
// "100.65.32.1": "svc:samba",
|
||||
// "fd7a:115c:a1e0::1234": "svc:samba",
|
||||
// "100.102.42.3": "svc:web",
|
||||
// "fd7a:115c:a1e0::abcd": "svc:web",
|
||||
// }
|
||||
type IPServiceMappings map[netip.Addr]string
|
||||
Loading…
Reference in New Issue