cwWebSock.cpp : callExpandPath() on physRootDir.

This commit is contained in:
kevin.larke 2020-04-21 17:55:40 -04:00
parent 24a43c4c47
commit 7dc88635e1

View File

@ -2,6 +2,7 @@
#include "cwLog.h" #include "cwLog.h"
#include "cwCommonImpl.h" #include "cwCommonImpl.h"
#include "cwMem.h" #include "cwMem.h"
#include "cwFileSys.h"
#include "cwWebSock.h" #include "cwWebSock.h"
#include "cwMpScNbQueue.h" #include "cwMpScNbQueue.h"
@ -332,7 +333,7 @@ cw::rc_t cw::websock::create(
p->_mount = mem::allocZ<struct lws_http_mount>(1); p->_mount = mem::allocZ<struct lws_http_mount>(1);
p->_mount->mountpoint = slash; p->_mount->mountpoint = slash;
p->_mount->mountpoint_len = strlen(slash); p->_mount->mountpoint_len = strlen(slash);
p->_mount->origin = mem::allocStr(physRootDir); // physical directory assoc'd with http "/" p->_mount->origin = filesys::expandPath(physRootDir); // physical directory assoc'd with http "/"
p->_mount->def = mem::allocStr(dfltHtmlPageFn); p->_mount->def = mem::allocStr(dfltHtmlPageFn);
p->_mount->origin_protocol= LWSMPRO_FILE; p->_mount->origin_protocol= LWSMPRO_FILE;