forked from Mxmilu666/frp
User can set use aes or gzip
This commit is contained in:
@@ -122,10 +122,15 @@ func LoadConf(confFile string) (err error) {
|
||||
}
|
||||
|
||||
// use_encryption
|
||||
proxyClient.UseEncryption = false
|
||||
proxyClient.UseEncryption = 0
|
||||
useEncryptionStr, ok := section["use_encryption"]
|
||||
if ok && useEncryptionStr == "true" {
|
||||
proxyClient.UseEncryption = true
|
||||
if ok {
|
||||
tmpRes, err := strconv.Atoi(useEncryptionStr)
|
||||
if err != nil {
|
||||
proxyClient.UseEncryption = 0
|
||||
}
|
||||
|
||||
proxyClient.UseEncryption = tmpRes
|
||||
}
|
||||
|
||||
ProxyClients[proxyClient.Name] = proxyClient
|
||||
|
||||
Reference in New Issue
Block a user