mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-05 04:47:40 +03:00
Fix abx reader
This commit is contained in:
parent
bb02986064
commit
2e9748c3ef
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ func NewReader(content []byte) (xml.TokenReader, bool) {
|
||||||
if len(content) < 4 || !bytes.Equal(content[:4], ProtocolMagicVersion0) {
|
if len(content) < 4 || !bytes.Equal(content[:4], ProtocolMagicVersion0) {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &Reader{reader: bytes.NewReader(content)}, true
|
return &Reader{reader: bytes.NewReader(content[4:])}, true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Reader) Token() (token xml.Token, err error) {
|
func (r *Reader) Token() (token xml.Token, err error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue