peer.sh 461 B

12345678910111213141516
  1. #!/bin/sh
  2. #
  3. # This is a script for the peer application,
  4. # for testing only purposes. It opens UDP echo-like sockets
  5. # on IPv4 address 127.0.0.1 and IPv6 address ::1.
  6. # The default port 3480 is used.
  7. #
  8. if [ -d examples ] ; then
  9. cd examples
  10. fi
  11. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/
  12. export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/usr/local/lib/
  13. PATH=examples/bin/:bin/:../bin:${PATH} turnutils_peer -L 127.0.0.1 -L ::1 -L 0.0.0.0 $@