proxynt 2.0.26__tar.gz → 2.0.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {proxynt-2.0.26 → proxynt-2.0.28}/PKG-INFO +1 -1
- {proxynt-2.0.26 → proxynt-2.0.28}/client/data_connection_manager.py +3 -1
- {proxynt-2.0.26 → proxynt-2.0.28}/common/nat_serialization.py +7 -6
- {proxynt-2.0.26 → proxynt-2.0.28}/constant/system_constant.py +1 -1
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/PKG-INFO +1 -1
- {proxynt-2.0.26 → proxynt-2.0.28}/LICENSE +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/MANIFEST.in +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/abstract_tunnel.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/clear_nonce_task.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/heart_beat_task.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/kcp_tunnel_impl.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/n4_tunnel_manager.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/quic_tunnel_impl.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/tcp_forward_client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/tunnel_protocol.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/client/udp_forward_client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/cert_utils.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/crypto/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/crypto/table.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/encrypt_utils.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/kcp.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/logger_factory.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/n4_protocol.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/n4_punch.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/pool.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/register_append_data.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/speed_limit.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_abnf.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_app.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_cookiejar.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_core.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_exceptions.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_handshake.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_http.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_logging.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_socket.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_ssl_compat.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_url.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_utils.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/_wsdump.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/echo-server.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_abnf.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_app.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_cookiejar.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_http.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_url.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/common/websocket/tests/test_websocket.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/constant/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/constant/message_type_constnat.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/context/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/context/context_utils.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/client_config_entity.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/message/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/message/message_entity.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/message/push_config_entity.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/message/tcp_over_websocket_message.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/entity/server_config_entity.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/exceptions/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/exceptions/duplicated_name.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/exceptions/invalid_password.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/exceptions/replay_error.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/exceptions/signature_error.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/p2ptest/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/p2ptest/client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/p2ptest/n4.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/SOURCES.txt +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/dependency_links.txt +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/entry_points.txt +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/requires.txt +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/proxynt.egg-info/top_level.txt +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/run_client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/run_server.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/admin_http_handler.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/n4.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/n4_signal_service.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/session_manager.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/task/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/task/check_cookie_task.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/task/clear_nonce_task.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/task/heart_beat_task.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/tcp_forward_client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/__init__.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/base.html +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/css/fonts/element-icons.woff +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/css/index.css +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/ele_index.html +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/js/axios.min.js +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/js/index.js +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/js/vue.min.js +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/template/login.html +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/udp_forward_client.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/server/websocket_handler.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/setup.cfg +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/setup.py +0 -0
- {proxynt-2.0.26 → proxynt-2.0.28}/test_exchange.py +0 -0
|
@@ -76,8 +76,10 @@ class DataConnection:
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
try:
|
|
79
|
+
send_bytes = NatSerialization.dumps(join_message, ContextUtils.get_password(), self.compress_support)
|
|
80
|
+
print('self.compreoss-------', self.compress_support, 'send_bytes', send_bytes[:11])
|
|
79
81
|
ws.send(
|
|
80
|
-
|
|
82
|
+
send_bytes,
|
|
81
83
|
websocket.ABNF.OPCODE_BINARY
|
|
82
84
|
)
|
|
83
85
|
except Exception as e:
|
|
@@ -88,7 +88,7 @@ class NatSerialization:
|
|
|
88
88
|
elif type_ in (MessageTypeConstant.P2P_OFFER, MessageTypeConstant.P2P_ANSWER,
|
|
89
89
|
MessageTypeConstant.P2P_CANDIDATE, MessageTypeConstant.P2P_SUCCESS,
|
|
90
90
|
MessageTypeConstant.P2P_FAILED, MessageTypeConstant.P2P_PRE_CONNECT,
|
|
91
|
-
MessageTypeConstant.P2P_PEER_INFO, MessageTypeConstant.P2P_PUNCH_REQUEST):
|
|
91
|
+
MessageTypeConstant.P2P_PEER_INFO, MessageTypeConstant.P2P_PUNCH_REQUEST, MessageTypeConstant.JOIN_SESSION):
|
|
92
92
|
# P2P messages: use JSON encoding of data content only
|
|
93
93
|
data_content = data.get('data', {})
|
|
94
94
|
body = json.dumps(data_content).encode()
|
|
@@ -217,7 +217,7 @@ class NatSerialization:
|
|
|
217
217
|
elif type_.decode() in (MessageTypeConstant.P2P_OFFER, MessageTypeConstant.P2P_ANSWER,
|
|
218
218
|
MessageTypeConstant.P2P_CANDIDATE, MessageTypeConstant.P2P_SUCCESS,
|
|
219
219
|
MessageTypeConstant.P2P_FAILED, MessageTypeConstant.P2P_PRE_CONNECT,
|
|
220
|
-
MessageTypeConstant.P2P_PEER_INFO, MessageTypeConstant.P2P_PUNCH_REQUEST):
|
|
220
|
+
MessageTypeConstant.P2P_PEER_INFO, MessageTypeConstant.P2P_PUNCH_REQUEST, MessageTypeConstant.JOIN_SESSION):
|
|
221
221
|
# P2P messages: JSON decode
|
|
222
222
|
data = json.loads(body.decode())
|
|
223
223
|
return_data: MessageEntity = {
|
|
@@ -248,8 +248,9 @@ if __name__ == '__main__':
|
|
|
248
248
|
'uid': os.urandom(4),
|
|
249
249
|
'ip_port': '127.0.0.1:8888'}}
|
|
250
250
|
key32 = 'xxxx'
|
|
251
|
+
NatSerialization.loads(b'f\x1cBBB\r\xd0\x98\x8d\xae', key32, False)
|
|
251
252
|
# salt = '!%F=-?Pst970'
|
|
252
|
-
a = NatSerialization.dumps(data, key32, False)
|
|
253
|
-
print(a)
|
|
254
|
-
b = NatSerialization.loads(a, key32, True)
|
|
255
|
-
print(b)
|
|
253
|
+
# a = NatSerialization.dumps(data, key32, False)
|
|
254
|
+
# print(a)
|
|
255
|
+
# b = NatSerialization.loads(a, key32, True)
|
|
256
|
+
# print(b)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|