提交 c7840275 authored 作者: Mitch Capper's avatar Mitch Capper

Should use .com rather than .org even if they are on the same server

上级 a1b8d5b5
...@@ -65,11 +65,7 @@ sub usage(){ ...@@ -65,11 +65,7 @@ sub usage(){
print STDERR $usage; print STDERR $usage;
exit; exit;
} }
sub dbg_exec_get($){
my ($cmds) = @_;
$cmds =~ s/\n(?=.)/\n\t\t/gs;
return $cmds;
}
sub main(){ sub main(){
parse_args(); parse_args();
my $to_write_fs_cli=""; my $to_write_fs_cli="";
...@@ -145,7 +141,6 @@ sub main(){ ...@@ -145,7 +141,6 @@ sub main(){
} else { } else {
last if ( waitpid($pid, WNOHANG) != 0); last if ( waitpid($pid, WNOHANG) != 0);
} }
#print ".";
} }
my $secs = time - $start_time; my $secs = time - $start_time;
if ($secs < 3){ if ($secs < 3){
...@@ -250,7 +245,7 @@ sub pastebin_post($$){ ...@@ -250,7 +245,7 @@ sub pastebin_post($$){
my $post_len = length($post_body); my $post_len = length($post_body);
$pb_post =~ s/CONT_LEN/$post_len/; $pb_post =~ s/CONT_LEN/$post_len/;
$pb_post .= $post_body; $pb_post .= $post_body;
my $sock = new IO::Socket::INET ( PeerAddr => 'pastebin.freeswitch.org', PeerPort => '80', Proto => 'tcp', ); my $sock = new IO::Socket::INET ( PeerAddr => 'pastebin.freeswitch.com', PeerPort => '80', Proto => 'tcp', );
print $sock $pb_post; print $sock $pb_post;
my $url=""; my $url="";
while (my $line = <$sock>){ while (my $line = <$sock>){
...@@ -262,6 +257,11 @@ sub pastebin_post($$){ ...@@ -262,6 +257,11 @@ sub pastebin_post($$){
close $sock; close $sock;
return $url; return $url;
} }
sub dbg_exec_get($){
my ($cmds) = @_;
$cmds =~ s/\n(?=.)/\n\t\t/gs;
return $cmds;
}
sub strip_quotes($){ sub strip_quotes($){
my ($str) = @_; my ($str) = @_;
$str =~ s/^"//; $str =~ s/^"//;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论