Skip to content

Commit 0994e20

Browse files
committed
fix: tls type detection
1 parent 19a2ce4 commit 0994e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/core/hosts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ async def _prepare_subscription_inbound_data(
5252
# Merge TLS settings: host overrides inbound defaults
5353
tls_value = None if host.security == ProxyHostSecurity.inbound_default else host.security.value
5454
if tls_value is None:
55-
tls_value = inbound_config.get("tls")
55+
tls_value = inbound_config.get("tls", "none")
5656

5757
alpn_list = [alpn.value for alpn in host.alpn] if host.alpn else inbound_config.get("alpn", [])
5858
fp = host.fingerprint.value if host.fingerprint.value != "none" else inbound_config.get("fp", "")
5959
ais = host.allowinsecure if host.allowinsecure is not None else inbound_config.get("allowinsecure", False)
6060

6161
# Create TLS config once with merged data
6262
tls_config = TLSConfig(
63-
tls=tls_value,
63+
tls=tls_value if tls_value != "none" else None,
6464
sni=sni_list,
6565
fingerprint=fp,
6666
allowinsecure=ais,

0 commit comments

Comments
 (0)