Skip to content

Commit

Permalink
Add relay port
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Nov 15, 2022
1 parent 0ea5a56 commit 411e5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/default/x_tunnel/local/tls_relay_front/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,20 @@ def set_ips(self, ips):
dat = ips[ip_str]
sni = dat["sni"]
url_path = dat["url_path"]
port = dat.get("port", 443)

host_info[ip_str] = {
"sni":sni,
"url_path": url_path,
"port": port,
}

ipv6 = dat["ipv6"]
if ipv6:
host_info[ipv6] = {
"sni": sni,
"url_path": url_path,
"port": port,
}

self.host_manager.set_host(host_info)
Expand Down

0 comments on commit 411e5ce

Please sign in to comment.