function FindProxyForURL(url, host) { // Agar localhost yoki ichki tarmoqqa bo'lsa — to'g'ridan-to'g'ri kirish if ( shExpMatch(host, "localhost") || isInNet(host, "127.0.0.0", "255.0.0.0") || isInNet(host, "10.0.0.0", "255.0.0.0") || isInNet(host, "172.16.0.0", "255.240.0.0") || isInNet(host, "192.168.0.0", "255.255.0.0") ) { return "DIRECT"; } // Barcha boshqa trafik SOCKS proksi orqali o'tadi return "SOCKS5 172.18.34.3:1080"; }