1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-07 04:59:07 -04:00

move back to serial

This commit is contained in:
Darien Raymond
2018-11-03 13:03:02 +01:00
parent 128a90b98b
commit 77c03f0da5
12 changed files with 31 additions and 32 deletions

View File

@@ -6,8 +6,8 @@ import (
"v2ray.com/core/common"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/net"
"v2ray.com/core/common/serial"
"v2ray.com/core/common/task"
"v2ray.com/core/common/vio"
)
type AddressOption func(*AddressParser)
@@ -167,7 +167,7 @@ func (p *AddressParser) ReadAddressPort(buffer *buf.Buffer, input io.Reader) (ne
}
func (p *AddressParser) writePort(writer io.Writer, port net.Port) error {
return common.Error2(vio.WriteUint16(writer, port.Value()))
return common.Error2(serial.WriteUint16(writer, port.Value()))
}
func (p *AddressParser) writeAddress(writer io.Writer, address net.Address) error {