Commit 389e54e8 authored by nanahira's avatar nanahira

docs

parent 65ba8a1b
Pipeline #15711 passed with stages
in 34 seconds
......@@ -11,3 +11,4 @@ Railgun Tun
- `UP_SCRIPT` `DOWN_SCRIPT` Optional. Script to run when tun is up and down.
- `ENDPOINT` Optional. Initial endpoint to connect to.
- `MARK` Optional. Mark to set on packets.
- `FAMILY` IPv6 if set to 6, otherwise 4.
......@@ -156,7 +156,7 @@ int main(int argc, char *argv[]) {
auto up = get_var("UP_SCRIPT");
auto endpoint = get_var("ENDPOINT");
auto mark = get_var_number("MARK");
auto family = get_var_number("FAMILY", true) == 4 ? AF_INET : AF_INET6;
auto family = get_var_number("FAMILY") == 6 ? AF_INET6 : AF_INET;
if (endpoint != nullptr) {
addrinfo hints = {
......
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