mirror of
https://github.com/daeuniverse/dae.git
synced 2025-08-02 08:10:00 +07:00
fix: ip rule is not added when only binding to wan (#399)
This commit is contained in:
@ -194,12 +194,15 @@ func NewControlPlane(
|
||||
}
|
||||
}()
|
||||
|
||||
/// Bind to links. Binding should be advance of dialerGroups to avoid un-routable old connection.
|
||||
// Bind to LAN
|
||||
if len(global.LanInterface) > 0 {
|
||||
if len(global.LanInterface) > 0 || len(global.WanInterface) > 0 {
|
||||
if err = core.setupRoutingPolicy(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
/// Bind to links. Binding should be advance of dialerGroups to avoid un-routable old connection.
|
||||
// Bind to LAN
|
||||
if len(global.LanInterface) > 0 {
|
||||
if global.AutoConfigKernelParameter {
|
||||
_ = SetIpv4forward("1")
|
||||
}
|
||||
|
Reference in New Issue
Block a user