mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 16:17:41 +00:00
wgengine/router: implement UpdateMagicsockPort for CallbackRouter (#10494)
Updates #9084. Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
95655405b8
commit
97f84200ac
@ -56,6 +56,13 @@ func (r *CallbackRouter) Set(rcfg *Config) error {
|
|||||||
return r.SetBoth(r.rcfg, r.dcfg)
|
return r.SetBoth(r.rcfg, r.dcfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UpdateMagicsockPort implements the Router interface. This implementation
|
||||||
|
// does nothing and returns nil because this router does not currently need
|
||||||
|
// to know what the magicsock UDP port is.
|
||||||
|
func (r *CallbackRouter) UpdateMagicsockPort(_ uint16, _ string) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// SetDNS implements dns.OSConfigurator.
|
// SetDNS implements dns.OSConfigurator.
|
||||||
func (r *CallbackRouter) SetDNS(dcfg dns.OSConfig) error {
|
func (r *CallbackRouter) SetDNS(dcfg dns.OSConfig) error {
|
||||||
r.mu.Lock()
|
r.mu.Lock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user