wgengine/router: implement UpdateMagicsockPort for CallbackRouter (#10494)

Updates #9084.

Signed-off-by: Naman Sood <mail@nsood.in>
pull/10497/head
Naman Sood 5 months ago committed by GitHub
parent 95655405b8
commit 97f84200ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,6 +56,13 @@ func (r *CallbackRouter) Set(rcfg *Config) error {
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.
func (r *CallbackRouter) SetDNS(dcfg dns.OSConfig) error {
r.mu.Lock()

Loading…
Cancel
Save