Accept a default-server-timeout of 0. It's the default after all.
[privoxy.git] / tools / uagen.pl
index fe1c27c..4ab9444 100755 (executable)
@@ -3,7 +3,7 @@
 ##############################################################################################
 # uagen (http://www.fabiankeil.de/sourcecode/uagen/)
 #
-# $Id: uagen.pl,v 1.15 2011/06/29 20:29:29 fabiankeil Exp $
+# $Id: uagen.pl,v 1.19 2012/03/18 13:46:54 fabiankeil Exp $
 #
 # Generates a pseudo-random Firefox user agent and writes it into a Privoxy action file
 # and optionally into a Mozilla prefs file. For documentation see 'perldoc uagen(.pl)'.
@@ -40,7 +40,7 @@ use Getopt::Long;
 
 use constant {
 
-   UAGEN_VERSION       => 'uagen 1.1',
+   UAGEN_VERSION       => 'uagen 1.2.1',
 
    UAGEN_LOGFILE       => '/var/log/uagen.log',
    ACTION_FILE         => '/etc/privoxy/user-agent.action',
@@ -60,8 +60,8 @@ use constant {
    # are too lazy to check, but want to change them anyway, take the values you
    # see in the "Help/About Mozilla Firefox" menu.
 
-   BROWSER_VERSION                   => "5.0",
-   BROWSER_REVISION                  => '5.0',
+   BROWSER_VERSION                   => "10.0.3",
+   BROWSER_REVISION                  => '10.0.3',
    BROWSER_RELEASE_DATE              => '20100101',
 };
 
@@ -204,7 +204,6 @@ sub generate_firefox_user_agent() {
     our $randomize_release_date;
 
     my $mozillaversion  = '5.0';
-    my $security        = "U";
 
     my $creation_time = $randomize_release_date ?
         generate_creation_time($browser_release_date) : $browser_release_date;
@@ -212,8 +211,8 @@ sub generate_firefox_user_agent() {
     my ( $platform, $os_or_cpu )       = generate_platform_and_os;
 
     my $firefox_user_agent =
-      sprintf "Mozilla/%s (%s; %s; %s; %s; rv:%s) Gecko/%s Firefox/%s",
-      $mozillaversion, $platform, $security, $os_or_cpu, $locale, $browser_revision,
+      sprintf "Mozilla/%s (%s; %s; rv:%s) Gecko/%s Firefox/%s",
+      $mozillaversion, $platform, $os_or_cpu, $browser_revision,
       $creation_time, $browser_version;
 
     return $accept_language, $firefox_user_agent;
@@ -440,7 +439,6 @@ sub main() {
 }
 
 main();
-exit(0);
 
 =head1 NAME