Skip to content

Commit

Permalink
print "Network connection successful"
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Mar 28, 2024
1 parent d253943 commit 03617ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions util/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func init() {
message.SetString(language.English, "本机DNS异常! 将默认使用 %s, 可参考文档通过 -dns 自定义 DNS 服务器", "Local DNS exception! Will use %s by default, you can use -dns to customize DNS server")
message.SetString(language.English, "等待网络连接: %s", "Waiting for network connection: %s")
message.SetString(language.English, "%s 后重试...", "Retry after %s")
message.SetString(language.English, "网络连接成功", "Network connection successful")

// main
message.SetString(language.English, "监听端口发生异常, 请检查端口是否被占用! %s", "Listen port failed, please check if the port is occupied! %s")
Expand Down
3 changes: 3 additions & 0 deletions util/wait_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func WaitInternet(addresses []string) {
err := LookupHost(addr)
// Internet is connected.
if err == nil {
if retryTimes > 0 {
Log("网络连接成功")
}
return
}

Expand Down

0 comments on commit 03617ea

Please sign in to comment.