-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b20db0
commit 2a5887e
Showing
12 changed files
with
108 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,9 @@ object V2RayConfig { | |
@JvmField | ||
val Trojan = 2 | ||
|
||
@JvmField | ||
val Shadowsocks = 3 | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,6 +124,22 @@ object V2rayConfigUtil { | |
|
||
outbound.protocol = "vmess" | ||
} | ||
V2RayConfig.EConfigType.Shadowsocks -> { | ||
outbound.settings?.vnext = null | ||
|
||
val server = outbound.settings?.servers?.get(0) | ||
server?.address = vmess.address | ||
server?.method = vmess.security | ||
server?.ota = false | ||
server?.password = vmess.id | ||
server?.port = vmess.port | ||
server?.level = 8 | ||
|
||
//Mux | ||
outbound.mux?.enabled = false | ||
|
||
outbound.protocol = "shadowsocks" | ||
} | ||
V2RayConfig.EConfigType.Trojan -> { | ||
|
||
outbound.streamSettings = V2rayConfig.OutboundBean.StreamSettingsBean( | ||
|
@@ -137,7 +153,7 @@ object V2rayConfigUtil { | |
vmess.address, | ||
vmess.id, | ||
vmess.port, | ||
"[email protected]" | ||
"[email protected]", null, null, null | ||
))) | ||
|
||
//Mux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.