Skip to content

Commit

Permalink
HevConfig: 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 b07ddc9 commit 935ffa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ socks5:
# Socks5 server password
password: 'password'
# Socket mark
mark: 438
mark: 0x438

tcp:
port: 1088
Expand Down
2 changes: 1 addition & 1 deletion src/hev-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ hev_config_parse_server (yaml_document_t *doc, yaml_node_t *base,
}

if (mark)
srv->mark = strtoul (mark, NULL, 16);
srv->mark = strtoul (mark, NULL, 0);

return 0;
}
Expand Down

0 comments on commit 935ffa8

Please sign in to comment.