Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
nat_traversal
Commits
1fcc4a4f
Commit
1fcc4a4f
authored
May 16, 2017
by
Fong
Browse files
fix init error
parent
f16627e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.c
View file @
1fcc4a4f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment