Skip to content

Commit

Permalink
UPDATE workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
iotames committed Jun 7, 2024
1 parent 2e8d809 commit a10e08f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
- name: Build
run: |
mkdir -p build_assets
go build -v -o build_assets/v2raypool -trimpath -ldflags "-s -w -buildid= -X 'main.AppVersion=v1.6.4'" ./main
echo 'hello.ref=${{ github.ref }}'
echo 'hello.ref_name=${{ github.ref_name }}'
go build -v -o build_assets/v2raypool -trimpath -ldflags "-s -w -buildid= -X 'main.AppVersion=${{ github.ref_name }}' -X 'main.GoVersion=`go version`'" ./main
- name: Rename Windows File
if: matrix.goos == 'windows'
Expand Down
4 changes: 3 additions & 1 deletion v2raypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,12 @@ func (p *ProxyPool) testOneNode(n *ProxyNode, i int) bool {
}
speed, ok := testProxyNode(p.testUrl, p.GetLocalAddr(*n), i, p.testMaxDuration)
n.Speed = speed
fmt.Printf("-----testOneNode--ok(%v)--speed(%.4f)--nodeTestUrl(%s)-----ProxyPool.testUrl(%s)-----\n", ok, speed.Seconds(), n.TestUrl, p.testUrl)
fmt.Printf("-----testOneNode--ok(%v)--speed(%.4f)--nodeTestUrl(%s)-----ProxyPool.testUrl(%s)--Title(%s)---\n", ok, speed.Seconds(), n.TestUrl, p.testUrl, n.Title)
if ok {
n.TestUrl = p.testUrl
n.TestAt = time.Now()
} else {
n.TestAt = time.Time{}
}
p.UpdateNode(*n)
if speed < p.testMaxDuration {
Expand Down

0 comments on commit a10e08f

Please sign in to comment.