wgengine/router/osrouter: fix linux magicsock port changing
Fixes #17837 Signed-off-by: Sachin Iyer <siyer@detail.dev>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
1eba5b0cbd
commit
3280dac797
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user