Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 30, 2022
1 parent 51808a2 commit 01a980d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2ray_util/util_core/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def write(self, **kw):
self.part_json["domain"] = domain

apln_list = (StreamType.VLESS_TLS, StreamType.TROJAN, StreamType.VLESS_XTLS, StreamType.VLESS_GRPC)
if "streamSettings" in self.part_json and "alpn" in self.part_json["streamSettings"]["tlsSettings"] and self.stream_type not in apln_list:
if self.stream_type not in apln_list and "streamSettings" in self.part_json and "tlsSettings" in self.part_json["streamSettings"] and "alpn" in self.part_json["streamSettings"]["tlsSettings"]:
del self.part_json["streamSettings"]["tlsSettings"]["alpn"]

self.config["inbounds"][self.group_index] = self.part_json
Expand Down

0 comments on commit 01a980d

Please sign in to comment.