Skip to content

Commit 268131b

Browse files
committed
remove proxy switch from notification settings, use global proxy switch
1 parent 5621ec6 commit 268131b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

configs/config_sample.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"enabled": false,
3434
"bot_api_key": "",
3535
"chat_id": "",
36-
"message_template": "",
37-
"use_proxy": false
36+
"message_template": ""
3837
},
3938
"mail": {
4039
"enabled": false,

configs/config_sample.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ notify:
2222
bot_api_key:
2323
chat_id:
2424
message_template:
25-
use_proxy: false
2625
mail:
2726
enabled: false
2827
smtp_server:

internal/settings/settings.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type SlackNotify struct {
3434
BotAPITokenFile string `json:"bot_api_token_file" yaml:"bot_api_token_file"`
3535
Channel string `json:"channel" yaml:"channel"`
3636
MsgTemplate string `json:"message_template" yaml:"message_template"`
37-
UseProxy bool `json:"use_proxy" yaml:"use_proxy"`
3837
}
3938

4039
// TelegramNotify struct for telegram notification.
@@ -44,7 +43,6 @@ type TelegramNotify struct {
4443
BotAPIKeyFile string `json:"bot_api_key_file" yaml:"bot_api_key_file"`
4544
ChatID string `json:"chat_id" yaml:"chat_id"`
4645
MsgTemplate string `json:"message_template" yaml:"message_template"`
47-
UseProxy bool `json:"use_proxy" yaml:"use_proxy"`
4846
}
4947

5048
// MailNotify struct for SMTP notification.

0 commit comments

Comments
 (0)