Skip to content

Commit 063e3d6

Browse files
committed
Fix segfault when a port is already occupied
1 parent c447743 commit 063e3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool webserver::start(bool blocking)
325325

326326
if(this->daemon == NULL)
327327
{
328-
throw std::invalid_argument("Unable to connect daemon to port: " + this->port);
328+
throw std::invalid_argument("Unable to connect daemon to port: " + std::to_string(this->port));
329329
}
330330

331331
bool value_onclose = false;

0 commit comments

Comments
 (0)