mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
@@ -128,13 +128,13 @@ func makeWebReqMsg(br *broker, dev *device, id uint16, c net.Conn, r *http.Reque
|
||||
}
|
||||
|
||||
func genDestAddr(addr string) []byte {
|
||||
destIp, destPort, err := webReqVaildAddr(addr)
|
||||
destIP, destPort, err := webReqVaildAddr(addr)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
b := make([]byte, 6)
|
||||
copy(b, destIp)
|
||||
copy(b, destIP)
|
||||
|
||||
binary.BigEndian.PutUint16(b[4:], destPort)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user