Skip to content

Commit 2d65a9a

Browse files
committed
4.13.2 fix bug.
1 parent 411e5ce commit 2d65a9a

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
data
2+
/data*
33
*~
44
*.pyc
55
*.swp

code/default/lib/noarch/front_base/boringssl_wrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def wrap(self):
4343
self._connection = bssl.SSL_new(self._context.ctx)
4444

4545
if self.sni:
46-
bssl.SSL_set_tlsext_host_name(self._connection, self.sni)
46+
bssl.SSL_set_tlsext_host_name(self._connection, utils.to_bytes(self.sni))
4747

4848
bssl.SSL_set_bio(self._connection, bio, bio)
4949

code/default/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.13.1
1+
4.13.2

code/default/x_tunnel/local/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def load_config():
137137
config.set_var("enable_gae_proxy", 0)
138138
config.set_var("enable_cloudflare", 1)
139139
config.set_var("enable_cloudfront", 0)
140-
config.set_var("enable_heroku", 0)
140+
config.set_var("enable_heroku", 1)
141141
config.set_var("enable_tls_relay", 1)
142142
config.set_var("enable_direct", 0)
143143

code/default/x_tunnel/local/heroku_front/front_domains.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ovenchapter.herokuapp.com": {
3-
"sni_policy": "empty",
3+
"sni_policy": "random_prefix",
44
"ips": [
55
"54.224.34.30",
66
"34.201.81.34",

code/default/x_tunnel/local/tls_relay_front/front.py

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def set_ips(self, ips):
9090
def request(self, method, host, path="/", headers={}, data="", timeout=120):
9191
headers = dict(headers)
9292
headers["XX-Account"] = self.account
93+
headers["X-Path"] = path
9394

9495
response = self.http_dispatcher.request(method, host, path, dict(headers), data, timeout=timeout)
9596
if not response:

0 commit comments

Comments
 (0)