Projet

Général

Profil

« Précédent | Suivant » 

Révision 0ae4f3fa

Ajouté par Manuel Silvoso il y a environ 10 ans

Changes to make it work behind a bluecoat proxy - added a user agent, and changed url scheme

Voir les différences:

etc/inc/pfsense-utils.inc
1705 1705
	curl_setopt($ch, CURLOPT_NOPROGRESS, '1');
1706 1706
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
1707 1707
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
1708
	curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
1708 1709

  
1709 1710
	if (!empty($config['system']['proxyurl'])) {
1710 1711
		curl_setopt($ch, CURLOPT_PROXY, $config['system']['proxyurl']);
etc/inc/xmlrpc_client.inc
735 735
        if ($match[1] == '') {
736 736
            if ($port == 443) {
737 737
                $this->server   = $match[2];
738
                $this->protocol = 'ssl://';
738
                $this->protocol = 'https://';
739 739
                $this->port     = 443;
740 740
            } else {
741 741
                $this->server = $match[2];
......
750 750
            }
751 751
        } else {
752 752
            $this->server   = $match[2];
753
            $this->protocol = 'ssl://';
753
            $this->protocol = 'https://';
754 754
            if ($port) {
755 755
                $this->port = $port;
756 756
            } else {
......
763 763
            if ($match[1] == '') {
764 764
                if ($proxy_port == 443) {
765 765
                    $this->proxy          = $match[2];
766
                    $this->proxy_protocol = 'ssl://';
766
                    $this->proxy_protocol = 'https://';
767 767
                    $this->proxy_port     = 443;
768 768
                } else {
769 769
                    $this->proxy = $match[2];
......
778 778
                }
779 779
            } else {
780 780
                $this->proxy          = $match[2];
781
                $this->proxy_protocol = 'ssl://';
781
                $this->proxy_protocol = 'https://';
782 782
                if ($proxy_port) {
783 783
                    $this->proxy_port = $proxy_port;
784 784
                } else {

Formats disponibles : Unified diff