xkcptun icon indicating copy to clipboard operation
xkcptun copied to clipboard

通过cygwin编译出来的xkcp_client,localinterface参数应该怎样填?

Open ekenchan opened this issue 7 years ago • 4 comments

ekenchan avatar Jul 18 '17 01:07 ekenchan

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.

joyhope avatar Nov 16 '17 12:11 joyhope

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.

l1viathan avatar Sep 17 '18 08:09 l1viathan

@jikesong r u old friend from linuxforum?

liudf0716 avatar Sep 17 '18 09:09 liudf0716

Yeah, glad to meet you here :)

l1viathan avatar Sep 17 '18 15:09 l1viathan