chore: rename ingress_interface to lan_interface

This commit is contained in:
mzz2017 2023-01-28 02:09:11 +08:00
parent fafb995ffc
commit c9157822fa
3 changed files with 9 additions and 7 deletions

View File

@ -70,7 +70,7 @@ func Run() (err error) {
}
// Bind to link.
if err = t.BindLink(param.Global.IngressInterface); err != nil {
if err = t.BindLink(param.Global.LanInterface); err != nil {
return err
}

View File

@ -17,7 +17,7 @@ type Global struct {
CheckUrl string `mapstructure:"check_url" default:"https://connectivitycheck.gstatic.com/generate_204"`
CheckInterval time.Duration `mapstructure:"check_interval" default:"15s"`
DnsUpstream string `mapstructure:"dns_upstream" default:"208.67.222.222:5353"`
IngressInterface string `mapstructure:"ingress_interface" required:""`
LanInterface string `mapstructure:"lan_interface" required:""`
}
type Group struct {

View File

@ -10,8 +10,9 @@ global {
# Please make sure DNS traffic will go through and be forwarded by dae.
dns_upstream: '1.1.1.1:53'
# The ingress (LAN) interface to bind.
# Now only support one interface.
ingress_interface: docker0
lan_interface: docker0
}
# subscription will be resolved as nodes and merged into node pool below.
@ -61,6 +62,7 @@ group {
}
routing {
domain(geosite:category-ads) -> block
l4proto(udp) && mac('02:42:ac:11:00:02') -> BT
domain(geosite:category-ads) -> block
domain(geosite:disney) -> disney