Chore: code style

This commit is contained in:
yaling888
2022-03-05 18:04:04 +08:00
parent 71e002c2ef
commit ba7bcce895
6 changed files with 29 additions and 36 deletions

View File

@ -403,8 +403,8 @@ func genAddr(host string, port int, allowLan bool) string {
return fmt.Sprintf("127.0.0.1:%d", port)
}
// CleanUp clean up something
func CleanUp() {
// Cleanup clean up something
func Cleanup() {
if runtime.GOOS == "windows" {
if tunAdapter != nil {
tunAdapter.Close()