mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-12 13:28:30 +00:00
Allow comment sybols # and ; inside values (#615)
Co-authored-by: heran yang <heran.yang@seafile.com>
This commit is contained in:
@@ -39,7 +39,9 @@ func init() {
|
||||
func loadNotifConfig() {
|
||||
notifyConfPath := filepath.Join(configDir, "seafile.conf")
|
||||
|
||||
config, err := ini.Load(notifyConfPath)
|
||||
opts := ini.LoadOptions{}
|
||||
opts.SpaceBeforeInlineComment = true
|
||||
config, err := ini.LoadSources(opts, notifyConfPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to load notification.conf: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user