xkcptun
xkcptun copied to clipboard
通过cygwin编译出来的xkcp_client,localinterface参数应该怎样填?
cygwin does not support get_iface_ip, so the meaning should be changed ip string.
find following code, and made a little change.
char *addr = get_iface_ip(xkcp_get_param()->local_interface);
if (!addr) {
debug(LOG_ERR, "get_iface_ip [%s] failed", xkcp_get_param()->local_interface);
addr = xkcp_get_param()->local_interface; <<=add
//exit(0); <<==remove
}
the localinterface could be set up as a local ip address.
This changed make the project work in cygwin.
But my browser test is not working. I guess concurrent connection cause the problems.
Please consider change "localinterface" to "localaddress" in the code.
For example, I have two interfaces, eth0 and wlan0, either one can be used. While I only want 127.0.0.1 used, but specifying lo won't work.
@jikesong r u old friend from linuxforum?
Yeah, glad to meet you here :)