Fix support Aqara G2H #793

This commit is contained in:
Alex X
2024-01-01 09:24:43 +03:00
parent c60767c8b0
commit a724c5f3ce
2 changed files with 21 additions and 19 deletions
+2 -5
View File
@@ -55,11 +55,8 @@ func proxy(r, w net.Conn, pair ServerPair) error {
continue
}
//if n > 512 {
// log.Printf("[hap] %d bytes => %s\n%s...", n, w.RemoteAddr(), b[:512])
//} else {
// log.Printf("[hap] %d bytes => %s\n%s", n, w.RemoteAddr(), b[:n])
//}
//log.Printf("[hap] %d bytes => %s\n%.512s", n, w.RemoteAddr(), b[:n])
if _, err = w.Write(b[:n]); err != nil {
break
}