Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix #59, package "strings" redeclare and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
neargle committed Oct 16, 2018
1 parent 513e48d commit 6c8957c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions daemon/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ package common

import (
"crypto/tls"
"fmt"
"net"
"net/http"
"os"
"os/exec"
"runtime"
"strings"
"sync"
"time"
"net"
"strings"
"fmt"

"github.com/axgle/mahonia"
"github.com/kardianos/service"
Expand Down Expand Up @@ -119,8 +118,8 @@ func InArray(list []string, value string, like bool) bool {
}

// 获取一个可以绑定的内网IP
func BindAddr() string{
// 通过连接一个可达的任何一个地址,获取本地的内网的地址
func BindAddr() string {
// 通过连接一个可达的任何一个地址,获取本地的内网的地址
conn, _ := net.Dial("udp", "114.114.114.114:53")
defer conn.Close()
localAddr := conn.LocalAddr().String()
Expand Down

0 comments on commit 6c8957c

Please sign in to comment.