feat: set protocolVersion default value

The default version of SocksProfile is Socks5

Closes #376
This commit is contained in:
purofle 2023-10-29 20:32:07 +08:00
parent 6230dcf3bc
commit 7c4a965e40

View File

@ -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)