disable journalhook because it doesn't build on Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
13af6a6273
commit
c32f8585fa
|
@ -12,7 +12,7 @@ import "net"
|
|||
import "strconv"
|
||||
import "strings"
|
||||
import log "github.com/sirupsen/logrus"
|
||||
import "github.com/wercker/journalhook"
|
||||
// import "github.com/wercker/journalhook"
|
||||
|
||||
import "git.wit.com/wit/shell"
|
||||
|
||||
|
@ -43,12 +43,14 @@ func GetRemoteAddr(conn net.TCPConn) string {
|
|||
// Then each hostname is verified with DNSSEC
|
||||
//
|
||||
func HandleConnection(conn *net.TCPConn) {
|
||||
journalhook.Enable()
|
||||
// Disable journalhook until it builds on Windows
|
||||
// journalhook.Enable()
|
||||
|
||||
// spew.Dump(conn)
|
||||
// ipv6client := GetRemoteAddr(c)
|
||||
ipv6client := conn.RemoteAddr()
|
||||
log.Println("Serving to %s as the IPv6 client", ipv6client)
|
||||
|
||||
|
||||
// setup this TCP socket as the "standard input"
|
||||
// newStdin, _ := bufio.NewReader(conn.File())
|
||||
newStdin, _ := conn.File()
|
||||
|
|
|
@ -12,7 +12,9 @@ import "github.com/miekg/dns"
|
|||
import "github.com/rs/dnstrace/client"
|
||||
|
||||
import log "github.com/sirupsen/logrus"
|
||||
import "github.com/wercker/journalhook"
|
||||
|
||||
// this is cool, but breaks the Windows build
|
||||
// import "github.com/wercker/journalhook"
|
||||
|
||||
// import "github.com/davecgh/go-spew/spew"
|
||||
|
||||
|
@ -157,5 +159,6 @@ func ResolveIPv6hostname(hostname string) *net.TCPAddr {
|
|||
}
|
||||
|
||||
func UseJournalctl() {
|
||||
journalhook.Enable()
|
||||
log.Println("journalhook is disabled because it breaks the Windows build right now")
|
||||
// journalhook.Enable()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue