wgengine/router/osrouter: fix linux magicsock port changing

Fixes #17837

Signed-off-by: Sachin Iyer <siyer@detail.dev>
This commit is contained in:
Sachin Iyer
2025-11-10 16:05:09 -08:00
committed by Brad Fitzpatrick
parent 1eba5b0cbd
commit 3280dac797
2 changed files with 41 additions and 1 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ func (r *linuxRouter) updateMagicsockPort(port uint16, network string) error {
}
if port != 0 {
if err := r.nfr.AddMagicsockPortRule(*magicsockPort, network); err != nil {
if err := r.nfr.AddMagicsockPortRule(port, network); err != nil {
return fmt.Errorf("add magicsock port rule: %w", err)
}
}