Grasscutter icon indicating copy to clipboard operation
Grasscutter copied to clipboard

[Bug] bindAddress ignored (always binds to 0.0.0.0)

Open ste94pz opened this issue 2 years ago • 2 comments

Hi, if I try to set a bindAddress different than 0.0.0.0 (like 192.168.11.4), it always binds on 0.0.0.0, but in the console I read the address that I put in the configuration. I'm on Ubuntu 22.04.1, openjdk 17.0.4.

Grasscutter version: 1.3.2-dev Git Hash: 794350a

ste94pz avatar Sep 21 '22 09:09 ste94pz

en: game { bindAddress,accessAddress } and http { bindAddress,accessAddress },I changed it and tried it. The only change is the console display. It seems that it is not really bound to the specified IP address cn: game { bindAddress,accessAddress } and http { bindAddress,accessAddress },我改了一下试了试,变的只有控制台显示,好像并没有真正的绑定到指定IP

图片 图片

en: After debugging, I found that the value can be inserted normally,

cn: 调试了一下,发现值可以正常塞进去, 图片

bai1996 avatar Sep 28 '22 06:09 bai1996

en: game { bindAddress,accessAddress } 和 http { bindAddress,accessAddress },我更改了它并尝试了它。唯一的变化是控制台显示。似乎它并没有真正绑定到指定的IP地址cn:game { bindAddress,accessAddress } and http { bindAddress,accessAddress },我改了一下试了试,变的只有控制台显示,好像并没有真正的绑定到指定IP

图片 图片

en:调试后发现该值可以正常插入,

cn: 调试了一下,发现值可以正常塞进去, 图片

大佬,能详细说说怎么操作吗,我也遇到这种情况了......

shutdown6666 avatar Jan 01 '23 23:01 shutdown6666

我只debug查了一下原因,并没有改,是【io.javalin.Javalin】的问题, 0.0.0.0是全部IP可访问,没有改的必要

bai1996 avatar Jan 17 '23 02:01 bai1996