Skip to content

Commit

Permalink
HevConf: Accepts fwmark values in multiple bases.
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed May 19, 2024
1 parent c9c47e9 commit 72644a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Options:
-s <addr>[:port] domain name or address of STUN server
-h <addr>[:port] domain name or address of HTTP server
-e <path> script path for notify mapped address
-f <mark> fwmark value
-f <mark> fwmark value (hex: 0x1, dec: 1, oct: 01)
Bind options:
-b <port> port number for binding
Expand Down
4 changes: 2 additions & 2 deletions src/hev-conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ hev_conf_help (void)
" -s <addr>[:port] domain name or address of STUN server\n"
" -h <addr>[:port] domain name or address of HTTP server\n"
" -e <path> script path for notify mapped address\n"
" -f <mark> fwmark value\n"
" -f <mark> fwmark value (hex: 0x1, dec: 1, oct: 01)\n"
"\n"
"Bind options:\n"
" -b <port> port number for binding\n"
Expand Down Expand Up @@ -98,7 +98,7 @@ hev_conf_init (int argc, char *argv[])
path = optarg;
break;
case 'f':
mark = strtoul (optarg, NULL, 16);
mark = strtoul (optarg, NULL, 0);
break;
case 'b':
bport = optarg;
Expand Down

0 comments on commit 72644a6

Please sign in to comment.