summaryrefslogtreecommitdiffstats
path: root/ncat/test/test-environment.lua
blob: bae265b49f8320a6466a047e7ae191bd9bd1c2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/lua

function print_env(v)
    print(("%s=%s"):format(v, os.getenv(v)))
end

print_env("NCAT_REMOTE_ADDR")
print_env("NCAT_REMOTE_PORT")

print_env("NCAT_LOCAL_ADDR")
print_env("NCAT_LOCAL_PORT")

print_env("NCAT_PROTO")