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
7ccd0b6c
Commit
7ccd0b6c
authored
May 19, 2017
by
Fong
Browse files
add -t option
parent
ca9fe2fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.c
View file @
7ccd0b6c
...
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
...
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
static
char
usage
[]
=
"usage: [-h] [-H STUN_HOST] [-t ttl] [-P STUN_PORT] [-s punch server] [-d id] [-i SOURCE_IP] [-p SOURCE_PORT] [-v verbose]
\n
"
;
static
char
usage
[]
=
"usage: [-h] [-H STUN_HOST] [-t ttl] [-P STUN_PORT] [-s punch server] [-d id] [-i SOURCE_IP] [-p SOURCE_PORT] [-v verbose]
\n
"
;
int
opt
;
int
opt
;
while
((
opt
=
getopt
(
argc
,
argv
,
"H:h:P:p:s:d:i"
))
!=
-
1
)
while
((
opt
=
getopt
(
argc
,
argv
,
"H:h:
t:
P:p:s:d:i"
))
!=
-
1
)
{
{
switch
(
opt
)
switch
(
opt
)
{
{
...
...
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