mirror of
https://github.com/CyberL1/holesail-proxy.git
synced 2025-02-23 02:29:21 -05:00
fix: trim \x00
This commit is contained in:
parent
59e30adaa2
commit
c72bc90146
@ -58,8 +58,8 @@ var upCmd = &cobra.Command{
|
|||||||
|
|
||||||
outWithoutBloat := outSplitted[len(outSplitted)-1]
|
outWithoutBloat := outSplitted[len(outSplitted)-1]
|
||||||
outWithoutBloat = strings.Split(outWithoutBloat, "--port")[1]
|
outWithoutBloat = strings.Split(outWithoutBloat, "--port")[1]
|
||||||
|
outWithoutBloat = strings.Trim(outWithoutBloat, "\x00")
|
||||||
|
|
||||||
fmt.Print(outWithoutBloat)
|
|
||||||
freePort, _ = strconv.Atoi(outWithoutBloat)
|
freePort, _ = strconv.Atoi(outWithoutBloat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user