File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments