mirror of
https://github.com/CyberL1/holesail-proxy.git
synced 2025-04-08 08:58:37 -04:00
Compare commits
No commits in common. "334b9aacc654da2fa79e4511b437248e5de88b35" and "59e30adaa224c7e76271fbba22299d943e7bea45" have entirely different histories.
334b9aacc6
...
59e30adaa2
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -1,26 +0,0 @@
|
|||||||
name: Build Go
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: '1.23'
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: go build
|
|
||||||
|
|
||||||
- name: Upload build
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: holesail-proxy
|
|
||||||
path: holesail-proxy
|
|
@ -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