Skip to content

Commit 920fbdb

Browse files
committed
feat: allow to read certificate file on node
1 parent 89aa596 commit 920fbdb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/core/xray.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def _handle_tls_settings(self, tls_settings: dict, settings: dict, inbound_tag:
117117
"""Handle TLS security settings."""
118118
settings["tls"] = "tls"
119119
for certificate in tls_settings.get("certificates", []):
120+
if certificate.get("serveOnNode", False):
121+
continue
120122
if certificate.get("certificateFile", None):
121123
with open(certificate["certificateFile"], "rb") as file:
122124
cert = file.read()

0 commit comments

Comments
 (0)