Merge branch 'master' into simulator
[platform/upstream/iotivity.git] / resource / src / InProcServerWrapper.cpp
index 0ae7c89..522ef82 100644 (file)
@@ -263,6 +263,10 @@ namespace OC
         {
             initType = OC_CLIENT_SERVER;
         }
+        else if (cfg.mode == ModeType::Gateway)
+        {
+            initType = OC_GATEWAY;
+        }
         else
         {
             throw InitializeException(OC::InitException::NOT_CONFIGURED_AS_SERVER,