Fix some miss.

This commit is contained in:
Naoki Kosaka 2018-12-10 00:48:11 +09:00
parent e60f294540
commit 0e640b2725
2 changed files with 1 additions and 3 deletions

View File

@ -62,7 +62,7 @@ func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "Activity Relay Extarnal CLI" app.Name = "Activity Relay Extarnal CLI"
app.Usage = "Control Relay configration" app.Usage = "Configure Activity-Relay"
app.Version = "0.2.0rc1" app.Version = "0.2.0rc1"
app.Commands = []cli.Command{ app.Commands = []cli.Command{
{ {

View File

@ -86,11 +86,9 @@ func importConfigs(c *cli.Context) {
} }
for _, LimitedDomain := range data.LimitedDomains { for _, LimitedDomain := range data.LimitedDomains {
relayState.SetLimitedDomain(LimitedDomain, true) relayState.SetLimitedDomain(LimitedDomain, true)
redClient.HSet("relay:config:limitedDomain", LimitedDomain, "1")
} }
for _, BlockedDomain := range data.BlockedDomains { for _, BlockedDomain := range data.BlockedDomains {
relayState.SetLimitedDomain(BlockedDomain, true) relayState.SetLimitedDomain(BlockedDomain, true)
redClient.HSet("relay:config:blockedDomain", BlockedDomain, "1")
} }
for _, Subscription := range data.Subscriptions { for _, Subscription := range data.Subscriptions {
relayState.AddSubscription(state.Subscription{ relayState.AddSubscription(state.Subscription{