Commit 1fcc4a4f authored by Fong's avatar Fong
Browse files

fix init error

parent f16627e1
......@@ -87,6 +87,9 @@ int main(int argc, char** argv)
return -1;
}
struct peer_info self;
strncpy(self.ip, ext_ip, 16);
self.port = ext_port;
self.type = type;
struct sockaddr_in server_addr;
server_addr.sin_family = AF_INET;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment