Still build debug.go

This commit is contained in:
Neil Alexander 2018-05-24 14:19:42 +01:00
parent b019297458
commit 9920b556a0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,3 @@
// +build !linux,!darwin,!windows,!openbsd,!freebsd,!netbsd
package yggdrasil
// These are functions that should not exist

View file

@ -302,12 +302,14 @@ func (iface *tcpInterface) reader(sock net.Conn, in func([]byte)) {
sock.SetReadDeadline(timeout)
n, err := sock.Read(bs[len(frag):])
if err != nil || n == 0 {
// iface.core.log.Println(err)
break
}
frag = bs[:len(frag)+n]
for {
msg, ok, err := tcp_chop_msg(&frag)
if err != nil {
// iface.core.log.Println(err)
return
}
if !ok {