mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-08 12:36:50 +03:00
feat: pass default interface to sing-box route
This commit is contained in:
@@ -4,6 +4,8 @@ config settings 'settings'
|
|||||||
option bootstrap_dns_server '77.88.8.8'
|
option bootstrap_dns_server '77.88.8.8'
|
||||||
option dns_rewrite_ttl '60'
|
option dns_rewrite_ttl '60'
|
||||||
list source_network_interfaces 'br-lan'
|
list source_network_interfaces 'br-lan'
|
||||||
|
option enable_output_network_interface '0'
|
||||||
|
#option output_network_interface 'eth1'
|
||||||
option enable_badwan_interface_monitoring '0'
|
option enable_badwan_interface_monitoring '0'
|
||||||
#list badwan_monitored_interfaces 'wan'
|
#list badwan_monitored_interfaces 'wan'
|
||||||
#option badwan_reload_delay '2000'
|
#option badwan_reload_delay '2000'
|
||||||
|
|||||||
@@ -737,7 +737,10 @@ sing_box_configure_dns() {
|
|||||||
sing_box_configure_route() {
|
sing_box_configure_route() {
|
||||||
log "Configure the route section of a sing-box JSON configuration"
|
log "Configure the route section of a sing-box JSON configuration"
|
||||||
|
|
||||||
config=$(sing_box_cm_configure_route "$config" "$SB_DIRECT_OUTBOUND_TAG" true "$SB_DNS_SERVER_TAG")
|
local output_network_interface
|
||||||
|
config_get output_network_interface "settings" "output_network_interface"
|
||||||
|
config=$(sing_box_cm_configure_route "$config" "$SB_DIRECT_OUTBOUND_TAG" true "$SB_DNS_SERVER_TAG" \
|
||||||
|
"$output_network_interface")
|
||||||
|
|
||||||
local sniff_inbounds
|
local sniff_inbounds
|
||||||
sniff_inbounds=$(comma_string_to_json_array "$SB_TPROXY_INBOUND_TAG,$SB_DNS_INBOUND_TAG")
|
sniff_inbounds=$(comma_string_to_json_array "$SB_TPROXY_INBOUND_TAG,$SB_DNS_INBOUND_TAG")
|
||||||
|
|||||||
Reference in New Issue
Block a user