fix(network): disable cellular IPv6 default-route hijack and set USB MTU 1360
This commit is contained in:
@@ -262,7 +262,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
|
||||
'gsm.auto-config', 'yes',
|
||||
'connection.autoconnect', 'no',
|
||||
'ipv4.route-metric', '700',
|
||||
'ipv6.route-metric', '700',
|
||||
'ipv6.method', 'disabled',
|
||||
'connection.interface-name', ifname if ifname != '*' else ''])
|
||||
else:
|
||||
cmd = ['nmcli', 'connection', 'add',
|
||||
@@ -273,7 +273,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
|
||||
'gsm.auto-config', 'yes',
|
||||
'connection.autoconnect', 'no',
|
||||
'ipv4.route-metric', '700',
|
||||
'ipv6.route-metric', '700']
|
||||
'ipv6.method', 'disabled']
|
||||
commands.append(cmd)
|
||||
return commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user