func SetStatus(stat int) {
	mutex.Lock()
	status = stat
	mutex.Unlock()
}
SetStatus set connection status.
package myself
import (
	"log"
	"net"
	"sync"
	"time"
	nat "github.com/shingetsu-gou/go-nat"
	"github.com/shingetsu-gou/shingetsu-gou/cfg"
)
var ip string
var externalPort *int32
var mutex sync.RWMutex
var status int
func init() {
	resetConnection()
}
func resetConnection() {
	mutex.Lock()
	defer mutex.Unlock()
	p := int32(cfg.DefaultPort)
	externalPort = &p
	status = cfg.Disconnected
}
func GetStatus() int {
	mutex.RLock()
	defer mutex.RUnlock()
	return status
}