mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-16 13:17:19 +02:00
remove redundant return
This commit is contained in:
@@ -1372,11 +1372,6 @@ func (p *prog) monitorNetworkChanges(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if selfIP == "" {
|
|
||||||
mainLog.Load().Debug().Msg("No valid IPv4 found on default route interface")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if ip := net.ParseIP(selfIP); ip != nil {
|
if ip := net.ParseIP(selfIP); ip != nil {
|
||||||
ctrld.SetDefaultLocalIPv4(ip)
|
ctrld.SetDefaultLocalIPv4(ip)
|
||||||
if !isMobile() && p.ciTable != nil {
|
if !isMobile() && p.ciTable != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user