Skip to content

Commit 7530fbb

Browse files
committed
resotre mtu to 9000
1 parent b792f29 commit 7530fbb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/database/DataStore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ object DataStore : OnPreferenceDataStoreChangeListener {
109109
var trafficSniffing by configurationStore.stringToInt(Key.TRAFFIC_SNIFFING) { 1 }
110110
var resolveDestination by configurationStore.boolean(Key.RESOLVE_DESTINATION)
111111

112-
var mtu by configurationStore.stringToInt(Key.MTU) { 1500 }
112+
var mtu by configurationStore.stringToInt(Key.MTU) { 9000 }
113113

114114
var bypassLan by configurationStore.boolean(Key.BYPASS_LAN)
115115
var bypassLanInCore by configurationStore.boolean(Key.BYPASS_LAN_IN_CORE)

app/src/main/res/xml/global_preferences.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
app:title="@string/tun_implementation"
4646
app:useSimpleSummaryProvider="true" />
4747
<moe.matsuri.nb4a.ui.MTUPreference
48-
app:defaultValue="1500"
48+
app:defaultValue="9000"
4949
app:entries="@array/mtu_select"
5050
app:entryValues="@array/mtu_select"
5151
app:icon="@drawable/baseline_public_24"

0 commit comments

Comments
 (0)