mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 14:40:06 +08:00
feat: set protocolVersion default value
The default version of SocksProfile is Socks5 Closes #376
This commit is contained in:
parent
6230dcf3bc
commit
7c4a965e40
@ -197,7 +197,7 @@ object DataStore : OnPreferenceDataStoreChangeListener {
|
||||
var serverDisableMtuDiscovery by profileCacheStore.boolean(Key.SERVER_DISABLE_MTU_DISCOVERY)
|
||||
var serverHopInterval by profileCacheStore.stringToInt(Key.SERVER_HOP_INTERVAL) { 10 }
|
||||
|
||||
var protocolVersion by profileCacheStore.stringToInt(Key.PROTOCOL_VERSION)
|
||||
var protocolVersion by profileCacheStore.stringToInt(Key.PROTOCOL_VERSION) { 2 } // default is SOCKS5
|
||||
|
||||
var serverProtocolInt by profileCacheStore.stringToInt(Key.SERVER_PROTOCOL)
|
||||
var serverPrivateKey by profileCacheStore.string(Key.SERVER_PRIVATE_KEY)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user