Skip to content

Commit

Permalink
[scripts] Fixes sample scripts to start web server/client.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Dec 20, 2018
1 parent b1351ce commit 4ea7900
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions scripts/start-client.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

# Usage: start-client.sh [server] [username]

SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
MODE=debug
USERNAME=${1:-client}
SERVER=${1:-localhost}
USERNAME=${2:-client}

shift

${SCRIPTPATH}/../build/${MODE}/bin/freelan -f -d --client.enabled=yes --client.disable_peer_verification=yes --client.disable_host_verification=yes --fscp.listen_on=0.0.0.0:12001 --client.username=${USERNAME} --client.password="ok" --client.public_endpoint=0.0.0.0 --client.public_endpoint=:: --client.public_endpoint=localhost:12001 $@
${SCRIPTPATH}/../build/${MODE}/bin/freelan -f -d --client.enabled=yes --client.disable_peer_verification=yes --client.disable_host_verification=yes --fscp.listen_on=0.0.0.0:12001 --client.username=${USERNAME} --client.password="ok" --client.public_endpoint=0.0.0.0 --client.public_endpoint=:: --client.server_endpoint=${SERVER} $@
2 changes: 1 addition & 1 deletion scripts/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
MODE=debug

${SCRIPTPATH}/../build/${MODE}/bin/freelan -f -d --server.enabled=yes --server.authentication_script=${SCRIPTPATH}/scripts/authenticate.sh $@
${SCRIPTPATH}/../build/${MODE}/bin/freelan -f -d --server.enabled=yes --server.authentication_script=${SCRIPTPATH}/authenticate.sh $@

0 comments on commit 4ea7900

Please sign in to comment.