Skip to content

Commit

Permalink
Update default value for remote_port in Packet class
Browse files Browse the repository at this point in the history
  • Loading branch information
zgxkbtl committed Dec 9, 2023
1 parent 3d5b2b2 commit 9283f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, data: dict):
self.data = data.get('data')
self.port = data.get('port') # 本地监听端口
self.remote_host: str = data.get('remote_host', '0.0.0.0') # 远程主机
self.remote_port: int = data.get('remote_port', 80) # 请求远程监听的端口
self.remote_port: int = data.get('remote_port', None) # 请求远程监听的端口
self.websocket_id: str = data.get('websocket_id', None)
self.data_tunnel_mode: str = data.get('data_tunnel_mode', 'reuse')
self.domain: str = data.get('domain', '')
Expand Down

0 comments on commit 9283f85

Please sign in to comment.