Skip to content

Commit

Permalink
doc: fix usage of init stop for erlang 26
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jun 1, 2023
1 parent a6ef03a commit c573f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ To compile ptun:
Host1 (1.1.1.1) listens for TCP on port 8787 and forwards the data
over ICMP:

erl -noshell -pa ebin deps/*/ebin -eval 'ptun:server({2,2,2,2},8787)' -s init stop
erl -noshell -pa ebin deps/*/ebin -eval 'ptun:server({2,2,2,2},8787)' -s erlang halt

Host2 (2.2.2.2) receives ICMP echo requests and opens a TCP connection
to 127.0.0.1:22:

erl -noshell -pa ebin deps/*/ebin -eval 'ptun:client({1,1,1,1},22)' -s init stop
erl -noshell -pa ebin deps/*/ebin -eval 'ptun:client({1,1,1,1},22)' -s erlang halt

To use the proxy on host1:

Expand Down

0 comments on commit c573f0c

Please sign in to comment.