Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ekenchan opened this issue Jul 18, 2017 · 4 comments

Comments

@ekenchan
Copy link

No description provided.

@joyhope
Copy link

joyhope commented Nov 16, 2017

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.

@l1viathan
Copy link

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.

@liudf0716
Copy link
Owner

liudf0716 commented Sep 17, 2018

@jikesong r u old friend from linuxforum?

@l1viathan
Copy link

Yeah, glad to meet you here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants