Fix wrong timeout in lookupIP

The assignment is changed wrongly in process of refactoring parallel
dialer for resolving bootstrap IP.

While at it, also satisfy staticheck for jffs not enabled error.
This commit is contained in:
Cuong Manh Le
2023-05-15 22:37:47 +07:00
committed by Cuong Manh Le
parent 9689607409
commit fa14f1dadf
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func ConfigureService(sc *service.Config) error {
switch name {
case DDWrt:
if !ddwrtJff2Enabled() {
return ddwrtJffs2NotEnabledErr
return errDdwrtJffs2NotEnabled
}
case OpenWrt:
sc.Option["SysvScript"] = openWrtScript