Skip to content

Commit

Permalink
Merge pull request #925 from subutai-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
crioto authored May 2, 2018
2 parents 35408b8 + 04b9589 commit 6904b60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ try {
sh """
rm -rf ${CWD}/p2p
git clone https://github.com/subutai-io/p2p
cd ${CWD}/p2p
"""

if (env.BRANCH_NAME != 'master') {
sh """
cd ${CWD}/p2p
git checkout --track origin/${env.BRANCH_NAME} && rm -rf .git*
"""
}
Expand Down
3 changes: 0 additions & 3 deletions lib/tuntap_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ func (t *TAPDarwin) MarkConfigured() {

// FilterInterface will return true if this interface needs to be filtered out
func FilterInterface(infName, infIP string) bool {
if len(infIP) > 4 && infIP[0:3] == "172" {
return true
}
Log(Info, "ping -t 1 -c 1 -S %s ptest.subutai.io", infIP)
ping := exec.Command("ping", "-t", "1", "-c", "1", "-S", infIP, "ptest.subutai.io")
if ping.Run() != nil {
Expand Down
3 changes: 3 additions & 0 deletions lib/tuntap_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ func (t *TAPLinux) MarkConfigured() {

// FilterInterface will return true if this interface needs to be filtered out
func FilterInterface(infName, infIP string) bool {
if len(infIP) > 4 && infIP[0:3] == "172" {
return true
}
Log(Trace, "ping -4 -w 1 -c 1 -I %s ptest.subutai.io", infName)
ping := exec.Command("ping", "-4", "-w", "1", "-c", "1", "-I", infName, "ptest.subutai.io")
if ping.Run() != nil {
Expand Down

0 comments on commit 6904b60

Please sign in to comment.