add files

This commit is contained in:
2021-04-11 01:26:55 +04:00
parent d2b050b14b
commit fdbb7bc587
77 changed files with 10832 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/*package server
import (
"fmt"
"github.com/jackpal/gateway"
natpmp "github.com/jackpal/go-nat-pmp"
)
func main() {
gatewayIP, err := gateway.DiscoverGateway()
if err != nil {
return
}
client := natpmp.NewClient(gatewayIP)
response, err := client.GetExternalAddress()
if err != nil {
fmt.Print(err)
return
}
fmt.Printf("External IP address: %v\n", response.ExternalIPAddress)
}*/