diff options
author | unethical <une@thi.cal> | 2019-05-05 01:31:34 +0000 |
---|---|---|
committer | unethical <une@thi.cal> | 2019-05-05 01:31:34 +0000 |
commit | 17679eb51057783aaae616ca29c0735571686c0e (patch) | |
tree | 816667ad7391eabf53a9cd4152a00953d6793e7a | |
parent | 885c3415a4cd34672425b42eadd7319118516b30 (diff) | |
download | cloudflare-tor-17679eb51057783aaae616ca29c0735571686c0e.tar cloudflare-tor-17679eb51057783aaae616ca29c0735571686c0e.tar.gz cloudflare-tor-17679eb51057783aaae616ca29c0735571686c0e.tar.lz cloudflare-tor-17679eb51057783aaae616ca29c0735571686c0e.tar.xz cloudflare-tor-17679eb51057783aaae616ca29c0735571686c0e.zip |
Update 'tool/irssi_cf_alturl.pl'
-rw-r--r-- | tool/irssi_cf_alturl.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/irssi_cf_alturl.pl b/tool/irssi_cf_alturl.pl index 57d345b5..6952711d 100644 --- a/tool/irssi_cf_alturl.pl +++ b/tool/irssi_cf_alturl.pl @@ -185,12 +185,12 @@ sub GotUrl { if ( $cfg_useshort == 1 ) { if ( length($myurl) > $cfg_minurllen ) { deb("$target Creating Short URL for $myurl"); - $url = 'https://tinyurl.com/api-create.php?url='.$result; + $url = 'https://ux.nu/api/short?format=plain&url='.$result; $browser = LWP::UserAgent->new; - $browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"); + $browser->agent("cloudflare-tor (Thank you for this service)"); $response = $browser->get($url); $answer = $response->content; - if ( index( $answer, 'http://tinyurl.com/' ) == 0 ) { + if ( index( $answer, 'https://ux.nu/' ) == 0 ) { $myurl = $answer; } } |