MikeWang000000 / Natter

Expose your TCP/UDP port behind full-cone NAT to the Internet.
GNU General Public License v3.0
1.31k stars 107 forks source link

natter_checker.py 中,ip changed 判断似乎有问题 #39

Closed KKRainbow closed 5 months ago

KKRainbow commented 5 months ago

L241 ip_changed = (recv_host != self.STUN_PORT)

应该跟 stun_host 比较

MikeWang000000 commented 5 months ago

此代码本意用于判断 STUN 服务器是否真的支持切换 IP 或 端口,这里确实是我的笔误。

您是否愿意提一个 PR?

KKRainbow commented 5 months ago

可以

MikeWang000000 commented 5 months ago

Fixed by deee2fe. 我加上 Co-author 了。