@ -2771,7 +2771,7 @@ func (c *Conn) ParseEndpoint(keyAddrs string) (conn.Endpoint, error) {
publicKey : tailcfg . NodeKey ( pk ) , // peer public key (for WireGuard + DERP)
discoKey : tailcfg . DiscoKey ( discoKey ) , // for discovery mesages
discoShort : tailcfg . DiscoKey ( discoKey ) . ShortString ( ) ,
wgEndpoint HostPort : addrs ,
wgEndpoint : addrs ,
sentPing : map [ stun . TxID ] sentPing { } ,
endpointState : map [ netaddr . IPPort ] * endpointState { } ,
}
@ -3115,7 +3115,7 @@ type discoEndpoint struct {
discoKey tailcfg . DiscoKey // for discovery mesages
discoShort string // ShortString of discoKey
fakeWGAddr netaddr . IPPort // the UDP address we tell wireguard-go we're using
wgEndpoint HostPort string // string from ParseEndpoint: "<hex-discovery-key>.disco.tailscale:12345"
wgEndpoint string // string from ParseEndpoint: "<hex-discovery-key>.disco.tailscale:12345"
// Owned by Conn.mu:
lastPingFrom netaddr . IPPort
@ -3295,7 +3295,7 @@ func (de *discoEndpoint) String() string {
func ( de * discoEndpoint ) ClearSrc ( ) { }
func ( de * discoEndpoint ) SrcToString ( ) string { panic ( "unused" ) } // unused by wireguard-go
func ( de * discoEndpoint ) SrcIP ( ) net . IP { panic ( "unused" ) } // unused by wireguard-go
func ( de * discoEndpoint ) DstToString ( ) string { return de . wgEndpoint HostPort }
func ( de * discoEndpoint ) DstToString ( ) string { return de . wgEndpoint }
func ( de * discoEndpoint ) DstIP ( ) net . IP { panic ( "unused" ) }
func ( de * discoEndpoint ) DstToBytes ( ) [ ] byte { return packIPPort ( de . fakeWGAddr ) }