mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-12 21:00:27 +08:00
fix 分片
This commit is contained in:
@@ -102,7 +102,7 @@ func execute(c string, args ...string) {
|
|||||||
func send(m *link.Me, packet []byte) (n int, rem []byte) {
|
func send(m *link.Me, packet []byte) (n int, rem []byte) {
|
||||||
if !waterutil.IsIPv4(packet) {
|
if !waterutil.IsIPv4(packet) {
|
||||||
if waterutil.IsIPv6(packet) {
|
if waterutil.IsIPv6(packet) {
|
||||||
n = int(binary.BigEndian.Uint16(packet[4:6])) + 20
|
n = int(binary.BigEndian.Uint16(packet[4:6])) + 40
|
||||||
rem = packet[n:]
|
rem = packet[n:]
|
||||||
logrus.Warnln("[lower] skip to send", n, "bytes ipv6 packet")
|
logrus.Warnln("[lower] skip to send", n, "bytes ipv6 packet")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user