summaryrefslogtreecommitdiffstats
path: root/src/socket/SocketListener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket/SocketListener.cpp')
-rw-r--r--src/socket/SocketListener.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket/SocketListener.cpp b/src/socket/SocketListener.cpp
index f79c055a..6b68c36c 100644
--- a/src/socket/SocketListener.cpp
+++ b/src/socket/SocketListener.cpp
@@ -45,7 +45,7 @@ SocketListener::SocketListener(Ingen::World& world)
{
// Create UNIX socket
_unix_path = world.conf().option("socket").get_string();
- const std::string unix_uri = "unix://" + _unix_path;
+ const Raul::URI unix_uri("unix://" + _unix_path);
if (!_unix_sock.bind(unix_uri) || !_unix_sock.listen()) {
LOG(Raul::error) << "Failed to create UNIX socket" << std::endl;
_unix_sock.close();
@@ -54,9 +54,9 @@ SocketListener::SocketListener(Ingen::World& world)
// Create TCP socket
int port = world.conf().option("engine-port").get_int();
std::ostringstream ss;
- ss << "tcp:///localhost:";
+ ss << "tcp://localhost:";
ss << port;
- if (!_net_sock.bind(ss.str()) || !_net_sock.listen()) {
+ if (!_net_sock.bind(Raul::URI(ss.str())) || !_net_sock.listen()) {
LOG(Raul::error) << "Failed to create TCP socket" << std::endl;
_net_sock.close();
}