if (origin.startsWith("http://") || origin.startsWith("https://")) {
originHost = origin.substring(origin.indexOf('/') + 2);
originHost = originHost.substring(0, originHost.indexOf('/') == -1 ? originHost.length() : originHost.indexOf('/'));
if (originHost.indexOf('@') != -1) originHost = originHost.substring(originHost.indexOf('@') + 1);
originAddr = InetAddress.getByName(originHost);
rr = builtin;
if (origin.startsWith("http://") || origin.startsWith("https://")) {
originHost = origin.substring(origin.indexOf('/') + 2);
originHost = originHost.substring(0, originHost.indexOf('/') == -1 ? originHost.length() : originHost.indexOf('/'));
if (originHost.indexOf('@') != -1) originHost = originHost.substring(originHost.indexOf('@') + 1);
originAddr = InetAddress.getByName(originHost);
rr = builtin;