mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: bump version
This commit is contained in:
1 parent
d6d706b5ee
commit
2c4aa26055
4 files changed
+8
-6
No files matched your search
+2
-2
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
// Config , every rule dialer points to a rule file
|
||||
type Config struct {
|
||||
name string
|
||||
Name string
|
||||
|
||||
Forward []string
|
||||
StrategyConfig strategy.Config
|
||||
@@ -28,7 +28,7 @@ type Config struct {
|
||||
|
||||
// NewConfFromFile .
|
||||
func NewConfFromFile(ruleFile string) (*Config, error) {
|
||||
p := &Config{name: ruleFile}
|
||||
p := &Config{Name: ruleFile}
|
||||
|
||||
f := conflag.NewFromFile("rule", ruleFile)
|
||||
f.StringSliceUniqVar(&p.Forward, "forward", nil, "forward url, format: SCHEME://[USER|METHOD:PASSWORD@][HOST]:PORT?PARAMS[,SCHEME://[USER|METHOD:PASSWORD@][HOST]:PORT?PARAMS]")
|
||||
|
||||
Reference in new issue
Block a user