mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-19 07:41:32 +02:00
apply role too
This commit is contained in:
@@ -173,6 +173,10 @@ func (u *InputUnifi) setDefaults(c *Controller, useDefaults bool) {
|
||||
c.URL = defaultURL
|
||||
}
|
||||
|
||||
if c.Role == "" {
|
||||
c.Role = c.URL
|
||||
}
|
||||
|
||||
if c.Pass == "" {
|
||||
c.Pass = defaultPass
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user