-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lee Driscoll
committed
Jun 27, 2017
1 parent
a8c50b9
commit 77b5567
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const http = require('http') | ||
import { HOSTS } from './config' | ||
|
||
const hostnames = [ | ||
'127.0.0.1', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/bin/bash | ||
|
||
ifconfig lo0 alias 127.0.0.2 up | ||
ifconfig lo0 alias 127.0.0.3 up | ||
TEST1=`ifconfig -uv "lo0" | grep "127.0.0.2"` | ||
TEST2=`ifconfig -uv "lo0" | grep "127.0.0.3"` | ||
|
||
if [[ -z ${TEST1} && -z ${TEST2} ]]; then | ||
ifconfig lo0 alias 127.0.0.2 up && echo 127.0.0.2 is up | ||
ifconfig lo0 alias 127.0.0.3 up && echo 127.0.0.3 is up | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
HOSTS: [ | ||
'127.0.0.2', | ||
'127.0.0.3', | ||
'127.0.0.4' | ||
] | ||
} |