Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Deutsch

Beschreibung:

Mit dem folgenden Add-in Skript können Sie neue HTTP-Proxy Whitelists erstellen und mit Inhalten füllen.

Liste der verwendeten Variablen:

VariableBeschreibung




Add-in Code:


/**


 *

@param

{Config}

config


 *

@param

{Context}

context


 *

Do

not

edit

this

comment

or

parameter

types.

Required

for

code

suggestions


*/


exports.main

=

function

(config,

context)

{


  const

ufApi

=

config.getUfApi();



  ufApi.modifySettings('http-proxy-settings/default?ignore_warnings=true', {
      "whitelists": [
          { {
              "name": "Name of 1st Whitelist",
              "description": "Description of Whitelist",
              "whitelist": [
                  "1.1.1.1",
                  "8.8.8.8",
                  ".lancom.de"

              ],
              "active": true // true or false
          }
          /* Include another bracket for 2nd or 3rd whitelist in one script
          , { ,
          {
            "description": "Description of Whitelist",
              "whitelist": [
                  "1.1.1.1",
                  "8.8.8.8",
                  ".lancom.de"

              ],
              "active": true // true or false
          } */ ] }
          */
      ]
  });

};

Add-in als JSON-Datei:

View file
nameuf_createwhitelist.json
height150

...

Englisch

Description:

With the following Add-in script you can create new HTTP-Proxy Whitelists and fill them with content.

List of used variables:

VariableDescription




Add-in code:


/**


 *

@param

{Config}

config


 *

@param

{Context}

context


 *

Do

not

edit

this

comment

or

parameter

types.

Required

for

code

suggestions


*/


exports.main

=

function

(config,

context)

{


  const

ufApi

=

config.getUfApi();



 
ufApi.modifySettings('http-proxy-settings/default?ignore_warnings=true', {

   
  "whitelists": [

         
{
{
              "name": "Name of 1st Whitelist",

             
"description": "Description of Whitelist",

           
  "whitelist": [

               
  "1.1.1.1",

             
    "8.8.8.8",

               
  ".lancom.de"


             
],

             
"active": true // true or false

       
  
}

         
/* Include another bracket for 2nd or 3rd whitelist in one script

         
, {
,
          {
            "description": "Description of Whitelist",

             
"whitelist": [

             
    "1.1.1.1",

             
    "8.8.8.8",

               
  ".lancom.de"


             
],

         
    "active": true // true or false

         
} */ ]
}
          */
      ]
  });


};

Add-in as JSON file:

View file
nameuf_createwhitelist.json
height150


...