Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# List of exceptions to add
ips <- c('192.168.25.*', '1-random-dockerurl.public.saagie.com')

sapply(ips, function(ip) {                                                   # For each ip in the list
   if(!stringi::stri_detect_fixed(Sys.getenv('NO_PROXY'), ip)) {             # If the variable is not already present
       Sys.setenv('NO_PROXY'=paste(Sys.getenv('NO_PROXY'),ip, sep = ','))}}) # Add it to the existing environment variable

...