Aller au contenu

Quelqu'un pourrait'il me dire si ce que j'ai écrit est correct

Featured Replies

Posté(e)

 

 

Voilà mon fichier wpad.dat.

Je ne suis pas sur de moi. Si un homme system vouliat bein se penchr la dessus et me donner son avis.

 

Merci.

function FindProxyForURL(url, host)
{
        If (IsInNet (Host, "192.168.1.0", "255.255.255.0")){
        return "DIRECT";}
}
{
        If (myipAdress (Host, "127.0.0.1")){
        return "DIRECT";}
}
{
        If (isPlainHostName (Host, "LocalHost")){
        return "DIRECT";}
}
{
        If (DNSDomainIs (Host, "xxxx.hd.free.fr")){
        return "DIRECT";}
}
{
        If (DNSDomainIs (Host, "xxxxxxx.freeboxos.fr")){
        return "DIRECT";}
}
Else {
        return "PROXY 192.168.1.254:3128; DIRECT";
}

 

  • 2 semaines après...
Posté(e)
  • Auteur

Personne n'a répondu, alors voilà ce que j'ai fait et qui fonctionne:

function FindProxyForURL(url, host)
{
    
    if (dnsDomainIs(host, "xxxxxxx.hd.free.fr") || dnsDomainIs(host, "xxxxxxxxx.freeboxos.fr")) {return "DIRECT";}

    if (isPlainHostName(host) || isPlainHostName (host, "LocalHost")) {return "DIRECT";}

    if (isInNet(host, "192.168.1.0", "255.255.255.0")) {return "DIRECT";}

    if (myIpAddress() == "127.0.0.1") {return "DIRECT";}

    else

      {
        return "PROXY 192.168.1.254:3128";
      }
}

 

Si ça peut rendre service....

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Qui est en ligne (Afficher la liste complète)

  • Il n’y a aucun utilisateur enregistré actuellement en ligne

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.