Skip to content

Commit 2b83b8e

Browse files
committed
把所有能显示hysteria字样的地方改为madman
1 parent c831b98 commit 2b83b8e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

app/cmd/root.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ import (
1414

1515
const (
1616
appLogo = `
17-
░██░█░█░█▀▀░▀█▀░█▀▀░█▀▄░▀█▀░█▀█░░░▀▀▄
18-
░█▀█░░█░░▀▀█░░█░░█▀▀░█▀▄░░█░░█▀█░░░▄▀░
19-
░▀░▀░░▀░░▀▀▀░░▀░░▀▀▀░▀░▀░▀▀░▀░▀░░░▀▀▀
17+
░██░█▀█░█▀▄░█▄█░█▀█░█▄█░░░▀▀▄
18+
░█░█░█▀█░█ █░█░░█▀█░███░░░▄▀░
19+
░▀░▀░▀░▀░▀▀ ░▀░▀░▀▀░▀░▀░░░▀▀▀
2020
`
21-
appDesc = "a powerful, lightning fast and censorship resistant proxy"
22-
appAuthors = "Aperture Internet Laboratory <https://github.com/apernet>"
21+
appDesc = "A rename version of a powerful and lightning fast proxy."
22+
appAuthors = "Coding Moe Buta <https://github.com/CodingMoeButa>"
2323

24-
appLogLevelEnv = "HYSTERIA_LOG_LEVEL"
25-
appLogFormatEnv = "HYSTERIA_LOG_FORMAT"
26-
appDisableUpdateCheckEnv = "HYSTERIA_DISABLE_UPDATE_CHECK"
27-
appACMEDirEnv = "HYSTERIA_ACME_DIR"
24+
appLogLevelEnv = "MADMAN_LOG_LEVEL"
25+
appLogFormatEnv = "MADMAN_LOG_FORMAT"
26+
appDisableUpdateCheckEnv = "MADMAN_DISABLE_UPDATE_CHECK"
27+
appACMEDirEnv = "MADMAN_ACME_DIR"
2828
)
2929

3030
var (
@@ -58,7 +58,7 @@ var (
5858
)
5959

6060
var rootCmd = &cobra.Command{
61-
Use: "hysteria",
61+
Use: "madman",
6262
Short: appDesc,
6363
Long: appAboutLong,
6464
Run: runClient, // Default to client mode
@@ -123,8 +123,8 @@ func initConfig() {
123123
viper.SetConfigType("yaml")
124124
viper.SupportedExts = append([]string{"yaml", "yml"}, viper.SupportedExts...)
125125
viper.AddConfigPath(".")
126-
viper.AddConfigPath("$HOME/.hysteria")
127-
viper.AddConfigPath("/etc/hysteria/")
126+
viper.AddConfigPath("$HOME/.madman")
127+
viper.AddConfigPath("/etc/madman/")
128128
}
129129
}
130130

app/internal/utils/geoloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
geoipURL = "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
1717
geositeFilename = "geosite.dat"
1818
geositeURL = "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
19-
geoDlTmpPattern = ".hysteria-geoloader.dlpart.*"
19+
geoDlTmpPattern = ".madman-geoloader.dlpart.*"
2020

2121
geoDefaultUpdateInterval = 7 * 24 * time.Hour // 7 days
2222
)

core/internal/congestion/brutal/brutal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717
minAckRate = 0.8
1818
congestionWindowMultiplier = 2
1919

20-
debugEnv = "HYSTERIA_BRUTAL_DEBUG"
20+
debugEnv = "MADMAN_BRUTAL_DEBUG"
2121
debugPrintInterval = 2
2222
)
2323

hyperbole.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def cmd_build(pprof=False, release=False, race=False):
199199
for os_name, arch in get_app_platforms():
200200
print("Building for %s/%s..." % (os_name, arch))
201201

202-
out_name = "hysteria-%s-%s" % (os_name, arch)
202+
out_name = "madman-%s-%s" % (os_name, arch)
203203
if os_name == "windows":
204204
out_name += ".exe"
205205

0 commit comments

Comments
 (0)