Package: apt-cacher
Version: 1.6.3

Currently apt-cacher doesn't have option for selecting outgoing interface for accessing mirrors. This option is useful in case of multi-interface machines with complex routing policies where default route is not always correct one

This adds new option to config file and passes it to libcurl

diff -r -u apt-cacher-1.6.3/apt-cacher2 apt-cacher-1.6.3.sns/apt-cacher2
--- apt-cacher-1.6.3/apt-cacher2 2008-05-25 11:32:48.000000000 +0100 +++ apt-cacher-1.6.3.sns/apt-cacher2 2008-05-30 12:07:15.251385000 +0100
@@ -1166,6 +1166,7 @@
        $curl->setopt(CURLOPT_NOSIGNAL, 1);
        $curl->setopt(CURLOPT_LOW_SPEED_LIMIT, 0);
        $curl->setopt(CURLOPT_LOW_SPEED_TIME, $cfg->{fetch_timeout});
+ $curl->setopt(CURLOPT_INTERFACE, $cfg->{use_interface}) if defined $cfg->{use_interface};

        # Callbacks
        $curl->setopt(CURLOPT_WRITEFUNCTION, \&body_callback);
diff -r -u apt-cacher-1.6.3/apt-cacher.conf apt-cacher-1.6.3.sns/apt- cacher.conf --- apt-cacher-1.6.3/apt-cacher.conf 2008-04-05 23:02:44.000000000 +0100 +++ apt-cacher-1.6.3.sns/apt-cacher.conf 2008-05-30 11:30:31.526226000 +0100
@@ -110,6 +110,10 @@
 # Value should be either 0 (off) or 1 (on).
 use_proxy_auth=0

+# This set the interface name to use as outgoing network interface.
+# The name can be an interface name, an IP address or a host name.
+#use_interface=
+
 # Rate limiting sets the maximum bandwidth in bytes per second to use
 # for fetching packages. Syntax is fully defined in 'man wget'.
# Use 'k' or 'm' to use kilobits or megabits / second: eg, 'limit=25k'.


Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and are used under licence. British Sky Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of British Sky Broadcasting Group plc (Registration No. 2247735). All of the companies mentioned in this paragraph are incorporated in England and Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to