From 5820e825249b72959ffe604374c11d54d6e1eadf Mon Sep 17 00:00:00 2001 From: travisladuke Date: Tue, 5 Mar 2024 15:22:05 -0800 Subject: [PATCH] use actual home path, not default home path --- controller/EmbeddedNetworkController.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index ac5d4d628..fdebc758b 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -877,9 +877,8 @@ void EmbeddedNetworkController::configureHTTPControlPlane( std::string memberPath = "/controller/network/([0-9a-fA-F]{16})/member/([0-9a-fA-F]{10})"; std::string appUiPath = "/app"; - std::string homeDir(OSUtils::platformDefaultHomePath()); static char appUiDir[16384]; - sprintf(appUiDir,"%s/%s",homeDir.c_str(),appUiPath.c_str()); + sprintf(appUiDir,"%s/%s",_ztPath.c_str(),appUiPath.c_str()); //static file server for controller-ui