File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,11 @@ def vless_route(uuid: str, route: str) -> str:
173173 parts [2 ] = route
174174 return "-" .join (parts )
175175
176- def _get_hysteria_data_from_finalmask (self , finalmask : dict ) -> tuple [Any | Literal ["" ], Any | dict ]:
176+ def _get_hysteria_data_from_finalmask (self , finalmask : dict | None ) -> tuple [Any | Literal ["" ], Any | dict ]:
177177 """Extract Hysteria obfuscation password and QUIC parameters from finalmask"""
178178
179+ if finalmask is None :
180+ finalmask = {}
179181 obfs_password = ""
180182 quic_params : dict = finalmask .get ("quicParams" , {})
181183 if udp := finalmask .get ("udp" ):
Original file line number Diff line number Diff line change @@ -569,8 +569,8 @@ def _build_outbound(
569569 "tag" : "proxy" ,
570570 "settings" : {
571571 "version" : 2 ,
572- "address" : inbound . address ,
573- "port" : inbound .port ,
572+ "address" : address ,
573+ "port" : self . _select_port ( inbound .port ) ,
574574 },
575575 }
576576
You can’t perform that action at this time.
0 commit comments