xiachufang / krakend-ipfilter

IP filter middleware for KrakenD framework
MIT License
9 stars 8 forks source link

[ERROR] listen tcp: address XXXX: missing port in address #8

Open zaco-chen opened 1 year ago

zaco-chen commented 1 year ago

您好 目前在example底下执行go run main.go -c deny.json -d 时 都会出现下列讯息: [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. [GIN-debug] Listening and serving HTTP on XXXX [GIN-debug] [ERROR] listen tcp: address XXXX: missing port in address

请问该如何解决呢? 谢谢

x1ah commented 1 year ago

@zaco-chen 参考 https://www.notefeel.com/you-trusted-all-proxies-this-is-not-safe

zaco-chen commented 1 year ago

主要是会出现下面那两行错误 [GIN-debug] Listening and serving HTTP on XXXX [GIN-debug] [ERROR] listen tcp: address XXXX: missing port in address

且执行后,不管是用allow.json还是deny.json,在我的IP没有设定deny的状况下 都会回传403 [KRAKEND] ERROR: krakend-ipfilter deny request from 相同的配置(除了version) 在上一版没有这个状况发生 再麻煩協助查看,謝謝您