mirror of
				https://github.com/oneclickvirt/backtrace.git
				synced 2025-11-04 15:52:37 +08:00 
			
		
		
		
	2024.05.02
This commit is contained in:
		
							parent
							
								
									ca5b639886
								
							
						
					
					
						commit
						b4ac40dfc0
					
				
							
								
								
									
										3
									
								
								.github/workflows/main.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/main.yaml
									
									
									
									
										vendored
									
									
								
							@ -55,7 +55,7 @@ jobs:
 | 
			
		||||
  run: |
 | 
			
		||||
    mkdir -p bin
 | 
			
		||||
    cd cmd
 | 
			
		||||
        CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v -ldflags="-extldflags=-static" .
 | 
			
		||||
    CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }} -v -ldflags="-extldflags=-static" .
 | 
			
		||||
 | 
			
		||||
    - name: Upload New Assets
 | 
			
		||||
      run: |
 | 
			
		||||
@ -74,6 +74,7 @@ jobs:
 | 
			
		||||
      matrix:
 | 
			
		||||
        goos: [windows, freebsd, openbsd, linux, darwin]
 | 
			
		||||
        goarch: [amd64, 386]
 | 
			
		||||
        goarm: [ "", "-arm7", "-arm6", "-arm5" ]
 | 
			
		||||
        exclude:
 | 
			
		||||
          - goarch: 386
 | 
			
		||||
            goos: darwin
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@
 | 
			
		||||
 | 
			
		||||
## 使用
 | 
			
		||||
 | 
			
		||||
更新时间:2024.05.01
 | 
			
		||||
更新时间:2024.05.02
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh
 | 
			
		||||
 | 
			
		||||
@ -120,9 +120,12 @@ func trace(ch chan Result, i int, cmin2 []string) {
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if tempText == (fmt.Sprintf("%v ", names[i]) + fmt.Sprintf("%-15s ", ips[i])) {
 | 
			
		||||
			tempText += fmt.Sprintf("%v", Red("检测不到已知线路的ASN"))
 | 
			
		||||
		}
 | 
			
		||||
		ch <- Result{i, tempText}
 | 
			
		||||
	} else {
 | 
			
		||||
		s := fmt.Sprintf("%v %-15s %v", names[i], ips[i], Red("检测不到ASN"))
 | 
			
		||||
		s := fmt.Sprintf("%v %-15s %v", names[i], ips[i], Red("检测不到回程路由节点的IP地址"))
 | 
			
		||||
		ch <- Result{i, s}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user