Make the restart on wakeup configurable

This commit is contained in:
Jakob Borg
2014-09-10 22:24:53 +02:00
parent 85dba25246
commit 13602b6769
4 changed files with 7 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ func TestDefaultValues(t *testing.T) {
UPnPEnabled: true,
UPnPLease: 0,
UPnPRenewal: 30,
RestartOnWakeup: true,
}
cfg := New("test", node1)
@@ -128,6 +129,7 @@ func TestOverriddenValues(t *testing.T) {
UPnPEnabled: false,
UPnPLease: 60,
UPnPRenewal: 15,
RestartOnWakeup: false,
}
cfg, err := Load("testdata/overridenvalues.xml", node1)