diff --git a/test.sh b/test.sh index 82528d34f1fa75685e95bcd849b5dfbde5fa5d8a..37d66e9c36b500e70788555d300830ad8239312f 100644 --- a/test.sh +++ b/test.sh @@ -24,16 +24,16 @@ generate_server_conf() { cat >$1 <<EOF { "db_path": "${root}/djrandom.db", - "db_addr": "localhost:3007", + "db_addr": "127.0.0.1:3007", "storage_root": "${root}/fs", "storage_pmap": "${root}/part.json", - "storage_self": "http://localhost:3003", + "storage_self": "http://127.0.0.1:3003", "storage_key_id": "abcdef", "storage_key_secret": "123456", "index_pmap": "${root}/part-index.json", - "index_self": "localhost:3002", + "index_self": "127.0.0.1:3002", "index_file": "${root}/djindex", - "task_server_addr": "http://localhost:3005", + "task_server_addr": "http://127.0.0.1:3005", "last_fm_api_key": "1234" } EOF @@ -44,7 +44,7 @@ generate_client_conf() { { "music_dir": "${music_dir}", "db_path": "${root}/djclient.db", - "server": "http://localhost:3001", + "server": "http://127.0.0.1:3001", "auth_key": "${auth_key}", "auth_secret": "${auth_secret}" } @@ -52,11 +52,11 @@ EOF } generate_storage_part() { - ${bindir}/parttool --parts=16 --file=$1 create http://localhost:3003 + ${bindir}/parttool --parts=16 --file=$1 create http://127.0.0.1:3003 } generate_index_part() { - ${bindir}/parttool --parts=16 --file=$1 create localhost:3002 + ${bindir}/parttool --parts=16 --file=$1 create 127.0.0.1:3002 } start_daemons() {