[minor/bug] add stub functions for HasSeenIP for darwin and windows

These functions need to be implemented, but this fixes current build
errors on these platforms.

Closes #199
This commit is contained in:
Aaron Meihm 2016-03-24 19:00:32 -05:00
Родитель f9cee409a1
Коммит 9b96dc19a0
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -173,3 +173,9 @@ func HasListeningPort(port string) (found bool, elements []element, err error) {
err = fmt.Errorf("HasListeningPort() is not implemented on %s", runtime.GOOS)
return
}
func HasSeenIP(val string) (found bool, elements []element, err error) {
// XXX Currently not implemented for darwin.
err = fmt.Errorf("HasSeenIP(): operation is not implemented on darwin")
return
}

Просмотреть файл

@ -72,3 +72,9 @@ func HasListeningPort(port string) (found bool, elements []element, err error) {
err = fmt.Errorf("HasListeningPort() is not implemented on %s", runtime.GOOS)
return
}
func HasSeenIP(val string) (found bool, elements []element, err error) {
// XXX Currently not implemented for windows.
err = fmt.Errorf("HasSeenIP(): operation is not implemented on windows")
return
}