mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
janus: fixed stun on change request
This commit is contained in:
parent
26a831d2ed
commit
299fadf0fa
@ -88,7 +88,7 @@ class Stun:
|
|||||||
|
|
||||||
if first.changed is None:
|
if first.changed is None:
|
||||||
raise RuntimeError(f"Changed addr is None: {first}")
|
raise RuntimeError(f"Changed addr is None: {first}")
|
||||||
response = await self.__make_request("Change request [ext_ip != src_ip]", b"", *first.changed.ip)
|
response = await self.__make_request("Change request [ext_ip != src_ip]", b"", first.changed.ip, first.changed.port)
|
||||||
if not response.ok:
|
if not response.ok:
|
||||||
return (StunNatType.CHANGED_ADDR_ERROR, response)
|
return (StunNatType.CHANGED_ADDR_ERROR, response)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user