mirror of
https://github.com/Merith-TK/simpleproxy.git
synced 2025-02-22 15:50:25 +00:00
adjust config file
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 6s
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 6s
This commit is contained in:
parent
61ee070c08
commit
ac39f47196
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
configPath := os.Getenv("GOPROXY_CONFIG")
|
configPath := os.Getenv("SIMPLEPROXY_CONFIG")
|
||||||
if configPath == "" || flag.Arg(0) == "" {
|
if configPath == "" || flag.Arg(0) == "" {
|
||||||
configPath = "goproxy.json" // Default path for Docker
|
configPath = "simpleproxy.json" // Default path for Docker
|
||||||
}
|
}
|
||||||
|
|
||||||
config := ReadConfig(configPath)
|
config := ReadConfig(configPath)
|
||||||
|
|
Loading…
Reference in a new issue