- Timestamp:
- Mar 24, 2024, 11:18:55 PM (15 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG.md
r151 r152 1 # v0.2.5 - 2024.03.24 2 * Rename `config.readConfig` to `config.ReadConfig` 3 * Assume default values if no `yukari.ini(5)` is loaded 4 1 5 # v0.2.4 - 2024.03.24 2 6 * Replace invalid favicon with one sourced from [here](https://en.touhouwiki.net/wiki/File:Th123YukariSigil.png), as well as using `//go:embed` for it -
trunk/cmd/yukari/main.go
r151 r152 914 914 flag.Parse() 915 915 916 config.Config.ListenAddress = "127.0.0.1:3000" 917 config.Config.Key = "" 918 config.Config.IPV6 = true 919 config.Config.Debug = false 920 config.Config.RequestTimeout = 5 921 config.Config.FollowRedirect = false 922 config.Config.UrlParameter = "yukariurl" 923 config.Config.HashParameter = "yukarihash" 924 config.Config.MaxConnsPerHost = 5 925 config.Config.ProxyEnv = false 916 if configFile != "" { 917 config.ReadConfig(configFile) 918 } else { 919 config.Config.ListenAddress = "127.0.0.1:3000" 920 config.Config.Key = "" 921 config.Config.IPV6 = true 922 config.Config.Debug = false 923 config.Config.RequestTimeout = 5 924 config.Config.FollowRedirect = false 925 config.Config.UrlParameter = "yukariurl" 926 config.Config.HashParameter = "yukarihash" 927 config.Config.MaxConnsPerHost = 5 928 config.Config.ProxyEnv = false 929 } 926 930 927 931 if version { -
trunk/config/config.go
r149 r152 18 18 } 19 19 20 func readConfig(file string) error {20 func ReadConfig(file string) error { 21 21 cfg, err := ini.Load(file) 22 22 if err != nil {
Note:
See TracChangeset
for help on using the changeset viewer.