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

remove errors.Format

This commit is contained in:
Darien Raymond
2017-04-09 00:31:06 +02:00
parent 6c736b8d57
commit bc4e2293ef
4 changed files with 5 additions and 22 deletions

View File

@@ -191,7 +191,7 @@ func (v *ClientSession) DecodeResponseHeader(reader io.Reader) (*protocol.Respon
}
if buffer[0] != v.responseHeader {
return nil, errors.Format("unexpected response header. Expecting %d but actually %d", v.responseHeader, buffer[0]).Path("Proxy", "VMess", "Encoding", "ClientSession")
return nil, errors.New("unexpected response header. Expecting ", int(v.responseHeader), " but actually ", int(buffer[0])).Path("Proxy", "VMess", "Encoding", "ClientSession")
}
header := &protocol.ResponseHeader{