diff --git a/server/masterserver/gsmgr.cc b/server/masterserver/gsmgr.cc index 28e6c42..879028f 100644 --- a/server/masterserver/gsmgr.cc +++ b/server/masterserver/gsmgr.cc @@ -311,8 +311,8 @@ int GSMgr::GetTargetChannel(const ss::SS_WSP_RequestTargetServer& msg) if (channel == 6000 && !msg.url().empty()) { std::vector strings; a8::Split(msg.url(), strings, '/'); - if (!strings.empty()) { - channel = a8::XValue(strings[0]); + if (strings.size() > 1) { + channel = a8::XValue(strings[1]); } } if (!App::Instance()->IsSeparateChannel(channel)) {