mirror of https://github.com/XTLS/Xray-core
re Update common.go
parent
cc027be58a
commit
b8e1b1d269
|
@ -358,7 +358,7 @@ func ParseRangeString(str string) (int, int, error) {
|
||||||
return 0, 0, nil
|
return 0, 0, nil
|
||||||
}
|
}
|
||||||
// for range value, like "114-514"
|
// for range value, like "114-514"
|
||||||
var pair []string
|
var pair []string
|
||||||
// Process sth like "-114-514" "-1919--810"
|
// Process sth like "-114-514" "-1919--810"
|
||||||
if strings.HasPrefix(str, "-") {
|
if strings.HasPrefix(str, "-") {
|
||||||
pair = splitFromSecondDash(str)
|
pair = splitFromSecondDash(str)
|
||||||
|
|
Loading…
Reference in New Issue