code: def get_proxy_bypass(network_service="Ethernet"):
      '''
      Returns the current domains that can bypass the proxy
  
      network_service
          The network service to get the bypass domains from, this is only
          necessary on macOS
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' proxy.get_proxy_bypass
  
      '''
      if __grains__['os'] == 'Windows':
          reg_val = __utils__['reg.read_value'](
              hive='HKEY_CURRENT_USER',
              key=r'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings',
              vname='ProxyOverride')['vdata']
  
          # `reg.read_value` returns None if the key doesn't exist
          if reg_val is None:
              return []
  
          return reg_val.replace('<local>', '').split(';')
  
      out = __salt__['cmd.run']('networksetup -getproxybypassdomains {0}'.format(network_service))
  
      return out.split("\n"f get_proxy_bypass(network_service="Ethernet"):
      '''
      Returns the current domains that can bypass the proxy
  
      network_service
          The network service to get the bypass domains from, this is only
          necessary on macOS
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' proxy.get_proxy_bypass
  
      '''
      if __grains__['os'] == 'Windows':
          reg_val = __utils__['reg.read_value'](
              hive='HKEY_CURRENT_USER',
              key=r'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings',
              vname='ProxyOverride')['vdata']
  
          # `reg.read_value` returns None if the key doesn't exist
          if reg_val is None:
              return []
  
          return reg_val.replace('<local>', '').split(';')
  
      out = __salt__['cmd.run']('networksetup -getproxybypassdomains {0}'.format(network_service))
  
      return out.split("\n")
docs: Returns the current domains that can bypass the proxy
  
      network_service
          The network service to get the bypass domains from, this is only
          necessary on macOS
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' proxy.get_proxy_bypass