]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1237] Reading interfaces.txt file is now optional.
authorTomek Mrugalski <tomasz@isc.org>
Fri, 23 Dec 2011 11:16:43 +0000 (12:16 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 23 Dec 2011 11:16:43 +0000 (12:16 +0100)
src/lib/dhcp/iface_mgr.cc

index 7a084b74c8de085e15a156f6f986fd5e3923b9ec..c7cfa8448a0e4118e06abc23a65fe7c86d4af87b 100644 (file)
@@ -169,8 +169,8 @@ IfaceMgr::stubDetectIfaces() {
         ifstream interfaces("interfaces.txt");
 
         if (!interfaces.good()) {
-            cout << "Failed to read interfaces.txt file." << endl;
-            isc_throw(Unexpected, "Failed to read interfaces.txt");
+            cout << "interfaces.txt file is not available. Stub interface detection skipped." << endl;
+            return;
         }
         interfaces >> ifaceName;
         interfaces >> linkLocal;