Skip to content

Commit

Permalink
TrojanFmt: parse peer
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Jan 8, 2023
1 parent a0b6b26 commit 214c2a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fun parseTrojan(server: String): TrojanBean {
parseDuckSoft(link)
link.queryParameter("allowInsecure")
?.apply { if (this == "1" || this == "true") allowInsecure = true }
link.queryParameter("peer")?.apply { if (this.isNotBlank()) sni = this }
}

}
Expand Down

0 comments on commit 214c2a4

Please sign in to comment.