Mike Wang

Results 115 comments of Mike Wang

Hi Alex, there're still some failed test cases under macOS Apple Silicon: make check log (click me) ``` Making check in data Making check in icons Making check in 16x16...

My code is based on spek-alternative, it's a little different from master now. The update of the ffmpeg related code is important, because `avcodec_decode_audio4()` is no longer available in the...

stun.stunprotocol.org -> stunserver.stunprotocol.org ref: https://stunprotocol.org ---- Edit: this is a personal server, and the owner is suffering from heavy bandwidth costs. https://t.co/xLcwfVJz9O

TURN server from Tencent Cloud (TCP Only, Global CDN including Mainland), STUN protocol compatible: ``` turn.cloud-rtc.com:80 ``` STUN server from Douyu (UDP Only, Mainland IP): ``` stun.douyucdn.cn:18000 ``` STUN server...

一些参考(来自 [miniupnp](https://github.com/miniupnp/miniupnp)): - https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/netfilter/iptcrdr.c - https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/netfilter_nft/nftnlrdr.c

感谢答复。 至于灵活性问题: - 此项功能本身单一,用途就是将本机接收到 `-b` 端口的数据,修改目的地址重定向至 `-t` 的 IP 地址和 `-p` 的端口,作为当前使用应用层面 socket 转发的替代; - 适用于几乎所有 Linux 发行版。 当然,此项需求本身也是出于便利性考虑,减少用户编写防火墙规则的负担。 --- 如果觉得没有内置的必要,保持现状就可以: 非持久化的规则会在重启时消失;持久化的规则也可以通过设置在规则链中,下次调用通知脚本时,可清理上次的规则。 只不过内置处理可以顺便提前一步。特地添加第二个通知脚本反而更复杂了(我觉得会用的人并不多) --- 这是一个提议,供参考~

提交了一个 PR,实现了通过 iptables 转发的功能。该功能期望在全部 Linux 发行版中适用。 不过还需要充分测试。

Thanks. 不过有一些建议可以作为参考: 1. 可以采用多阶段 (Multi-stage builds) 的方式构建,这样可以避免把整个 GCC 打进镜像里面,减少镜像体积; 2. NATMap 目前还没有内置 iptables 转发(虽然我曾提过这个事),`NET_ADMIN` `NET_RAW` 这两个权限还暂时用不到。

@heiher 另外不知是否有构建 Docker 镜像的规划?如果有我可以帮忙提个 PR。

Windows 下对应的应该是 `.bat` 批处理,应该不支持 `.py` 直接作为可执行程序。 我不常使用 Windows,可以试试将 `shell=False` 改成 `shell=True`,看看这样是否能调用 Python 脚本?