Skip to content

Commit

Permalink
Merge 2651176 into cfa99cf
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Jan 31, 2024
2 parents cfa99cf + 2651176 commit b499e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rconclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func HandleMemoryUsage(threshold float64, RconClient *RconClient, config config.
if config.UseDll {
// 构建请求的URL
base := "http://127.0.0.1:53000/rcon?text="
message := "broadcast " + url.QueryEscape(config.MaintenanceWarningMessage)
message := url.QueryEscape("broadcast " + config.MaintenanceWarningMessage)
fullURL := base + message

// 发送HTTP请求
Expand Down
2 changes: 1 addition & 1 deletion tool/rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func Broadcast(config config.Config, message string) error {
// 如果config.Usedll为true,则使用HTTP方式发送消息
if config.UseDll {
base := "http://127.0.0.1:53000/rcon?text="
messageText := "broadcast " + url.QueryEscape(message)
messageText := url.QueryEscape("broadcast " + message)
fullURL := base + messageText

// 发送HTTP请求
Expand Down

0 comments on commit b499e08

Please sign in to comment.