Skip to content

Commit

Permalink
feat: set protocolVersion default value
Browse files Browse the repository at this point in the history
The default version of SocksProfile is Socks5

Closes #376
  • Loading branch information
purofle committed Oct 30, 2023
1 parent 6230dcf commit 7c4a965
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c4a965

Please sign in to comment.