added live time network backup and restore

This commit is contained in:
wt committed 2025-08-02 17:34:26 +07:00
1 parent 3bef3f76e9
commit 1e3cc446e0
3 files changed
+276 -194

No files matched your search

+9 -1
View File
@@ -1,6 +1,14 @@
package cmd
import "fmt"
import (
"fmt"
"strings"
)
// isNetworkAddress checks if the address is in host:port format
func isNetworkAddress(addr string) bool {
return strings.Contains(addr, ":")
}
func formatBytes(b int64) string {
const unit = 1024