Bug fix
This commit is contained in:
1 parent
f14484c986
commit
21f47b536d
1 file changed
+5
-2
@@ -617,10 +617,13 @@ object AngConfigManager {
|
|||||||
EConfigType.SOCKS -> {
|
EConfigType.SOCKS -> {
|
||||||
val remark = "#" + Utils.urlEncode(config.remarks)
|
val remark = "#" + Utils.urlEncode(config.remarks)
|
||||||
val pw =
|
val pw =
|
||||||
Utils.encode("${outbound.settings?.servers?.get(0)?.users?.get(0)?.user}:${outbound.getPassword()}")
|
if (outbound.settings?.servers?.get(0)?.users?.get(0)?.user != null)
|
||||||
|
"${outbound.settings?.servers?.get(0)?.users?.get(0)?.user}:${outbound.getPassword()}"
|
||||||
|
else
|
||||||
|
":"
|
||||||
val url = String.format(
|
val url = String.format(
|
||||||
"%s@%s:%s",
|
"%s@%s:%s",
|
||||||
pw,
|
Utils.encode(pw),
|
||||||
Utils.getIpv6Address(outbound.getServerAddress()!!),
|
Utils.getIpv6Address(outbound.getServerAddress()!!),
|
||||||
outbound.getServerPort()
|
outbound.getServerPort()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user