Changeset 45032


Ignore:
Timestamp:
Dec 18, 2020, 1:17:50 AM (9 months ago)
Author:
obi
Message:

tithek add proxy support first step use in titan.cfg tithek_proxy=socks5://user:pass@ip:port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r45028 r45032  
    3838USERAGENT='Mozilla%2F5.0+%28Windows+NT+6.3%3B+rv%3A36.0%29+Gecko%2F20100101+Firefox%2F36.0'
    3939debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
     40PROXY=""
     41proxy=`cat /mnt/config/titan.cfg | grep tithek_proxy | cut -d"=" -f2`
     42if [ ! -z "$proxy" ];then PROXY="--proxy $proxy"; fi
     43curlbin="$CURLBIN $PROXY -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
     44curlbin2="$CURLBIN $PROXY -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
     45
    4046curlbin="$CURLBIN -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
    4147curlbin2="$CURLBIN -k -s --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A $USERAGENT -u $AUTH"
Note: See TracChangeset for help on using the changeset viewer.