mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
bugfix: using configs filename on read
This commit is contained in:
parent
777de8f144
commit
c66937fdba
@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func ReadConfigs(name string) ([]*Config, error) {
|
func ReadConfigs(name string) ([]*Config, error) {
|
||||||
file, err := os.Open("configs.json")
|
file, err := os.Open(name)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user