mirror of
https://github.com/oneclickvirt/gostun.git
synced 2025-10-07 08:01:23 +08:00
update
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -21,6 +22,7 @@ var (
|
||||
NatMappingBehavior string
|
||||
NatFilteringBehavior string
|
||||
)
|
||||
|
||||
// my changes end
|
||||
|
||||
type stunServerConn struct {
|
||||
@@ -77,6 +79,10 @@ func main() {
|
||||
log.Warn("NAT filtering behavior: inconclusive")
|
||||
}
|
||||
// my changes start
|
||||
go func() {
|
||||
http.Get("https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fgostun&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false")
|
||||
}()
|
||||
fmt.Println("项目地址:", "https://github.com/oneclickvirt/gostun")
|
||||
if NatMappingBehavior != "" && NatFilteringBehavior != "" {
|
||||
if NatMappingBehavior == "inconclusive" || NatFilteringBehavior == "inconclusive" {
|
||||
fmt.Println("NAT Type: inconclusive")
|
||||
|
Reference in New Issue
Block a user