diff --git a/src/osdep/amiberry_serial.cpp b/src/osdep/amiberry_serial.cpp index 89a94f597..f034d9af5 100644 --- a/src/osdep/amiberry_serial.cpp +++ b/src/osdep/amiberry_serial.cpp @@ -337,11 +337,8 @@ static int opentcp (const TCHAR *sername) int openser (const TCHAR *sername) { - if (!_tcsnicmp(sername, _T("TCP://"), 6)) { - return opentcp(sername + 6); - } if (!_tcsnicmp(sername, _T("TCP:"), 4)) { - return opentcp(sername + 4); + return opentcp(sername); } if (sp_get_port_by_name(sername, &port) != SP_OK) {