Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/apimodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type Config struct {
DeviceLimit int `mapstructure:"DeviceLimit"`
RuleListPath string `mapstructure:"RuleListPath"`
DisableCustomConfig bool `mapstructure:"DisableCustomConfig"`
PrivateIP string `mapstructure:"PrivateIP"`
}

// NodeStatus Node status
Expand Down
3 changes: 1 addition & 2 deletions api/fac/fac.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ func New(apiConfig *api.Config) *APIClient {
client.SetBaseURL(apiConfig.APIHost)
// Create Key for each requests
client.SetQueryParam("key", apiConfig.Key)
// Add support for muKey
client.SetQueryParam("muKey", apiConfig.Key)
client.SetQueryParam("private_ip", apiConfig.PrivateIP)
// Read local rule list
localRuleList := readLocalRuleList(apiConfig.RuleListPath)

Expand Down
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Nodes:
NodeID: test-node-westus-01.dev.slow-access.work
NodeType: Shadowsocks-Plugin # Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-Plugin
Timeout: 30 # Timeout for the api request
PrivateIP: "192.168.1.100"
ControllerConfig:
ListenIP: 0.0.0.0 # local listen address
SendIP: 0.0.0.0 # outbound interface ip
Expand Down