Skip to content

Commit

Permalink
Merge pull request #923 from subutai-io/sysnet
Browse files Browse the repository at this point in the history
Sysnet
  • Loading branch information
crioto authored May 2, 2018
2 parents c6ba677 + 74601b1 commit aa68d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 aa68d3b

Please sign in to comment.