mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
shielded some tasks
This commit is contained in:
@@ -63,7 +63,6 @@ class Stun:
|
||||
self.__sock: Optional[socket.socket] = None
|
||||
|
||||
async def get_info(self, src_ip: str, src_port: int) -> Tuple[str, str]:
|
||||
|
||||
(family, _, _, _, addr) = socket.getaddrinfo(src_ip, src_port, type=socket.SOCK_DGRAM)[0]
|
||||
try:
|
||||
with socket.socket(family, socket.SOCK_DGRAM) as self.__sock:
|
||||
|
||||
Reference in New Issue
Block a user