Skip to content

Commit

Permalink
juicity: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
shenghuang147 committed May 10, 2024
1 parent 86e7702 commit 1c3876d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion js/plugin_juicity/juicity.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class juicityClass {

var serverAddress = util.unwrapIpv6(url.hostname)
this.sharedStorage.serverAddress = serverAddress
this.sharedStorage.serverPort = url.host.replace(serverAddress, "").substringAfter(":")
this.sharedStorage.serverPort = url.port
this.sharedStorage.uuid = url.username
this.sharedStorage.password = url.password
this.sharedStorage.name = decodeURIComponent(url.hash.substringAfter("#"))
Expand Down
1 change: 0 additions & 1 deletion js/plugin_juicity/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export function nekoProtocol(protocolId) {
export function nekoAbout() {
return "早期测试版本,上游版本 v0.4.2\n" +
"1 目前不兼容链式代理\n" +
"2 目前无法使用域名,请使用 IP 地址类型的服务器\n" +
"这个插件是实验性的。如果在使用过程中遇到任何问题,请自行解决。"
}

Expand Down

0 comments on commit 1c3876d

Please sign in to comment.