This commit is contained in:
PTPT52 2024-04-30 22:49:24 +08:00 committed by GitHub
commit fe5a4e01be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -208,6 +208,7 @@ modemmanager_connected_method_dhcp_ipv6() {
json_add_string proto "dhcpv6"
proto_add_dynamic_defaults
json_add_string extendprefix 1 # RFC 7278: Extend an IPv6 /64 Prefix to LAN
[ "$sourcefilter" = "0" ] && json_add_boolean sourcefilter "0"
[ -n "$metric" ] && json_add_int metric "${metric}"
json_close_object
ubus call network add_dynamic "$(json_dump)"
@ -270,6 +271,7 @@ proto_modemmanager_init_config() {
proto_config_add_string preferredmode
proto_config_add_string pincode
proto_config_add_string iptype
proto_config_add_boolean sourcefilter
proto_config_add_string plmn
proto_config_add_int signalrate
proto_config_add_boolean lowpower
@ -429,7 +431,7 @@ proto_modemmanager_setup() {
local address prefix gateway mtu dns1 dns2
json_get_vars device apn allowedauth username password
json_get_vars pincode iptype plmn metric signalrate allow_roaming
json_get_vars pincode iptype sourcefilter plmn metric signalrate allow_roaming
json_get_vars allowedmode preferredmode
json_get_vars init_epsbearer