I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
  1. May 05, 2010
  2. Mar 29, 2010
    • zzz's avatar
      * configclients.jsp: · c43b16cf
      zzz authored
            - Always show start button for webapps and plugins
          * configclients.jsp, configupdate.jsp:
            - Fix submission when entering CR in a text box
          * Plugins:
            - Stop all plugins at shutdown
            - Log tweaks
          * WebApps:
            - Remove the WAC after stopping it
            - Stop a WAC before starting it to prevent dups
      c43b16cf
  3. Feb 27, 2010
  4. Feb 10, 2010
    • zzz's avatar
      * Plugins: · 949aea95
      zzz authored
            - Hook up update/delete/check/save buttons
            - Implement delete
            - Hide unless router.enablePlugins=true
      949aea95
  5. Feb 07, 2010
  6. Feb 06, 2010
  7. Nov 27, 2009
  8. Oct 18, 2009
    • zzz's avatar
      * Router Console translation infrastructure: · 44974637
      zzz authored
            - Persistent lang setting with routerconsole.lang=xx
            - Loading any page with ?lang=xx changes the persistent setting
            - Add a custom Jetty handler to load foo_xx.jsp if it
              exists for language xx. This is for jsp files with lots
              of text in them. Otherwise use inline translate methods.
              Not for included jsps.
            - Add a script to create and update messages_xx.po translation
              files, and create ResourceBundles from them
            - Add class to translate strings from cached ResourceBundles
            - Add translate wrappers to HelperBase, FormHandler, and *Renderer,
              so calls can be made from both jsp and java files
            - Add two example translations on configupdate.jsp - one in
              the jsp itself and one in the helper.
            - This is for strings in routerconsole only. Will be expanded
              to other webapps and the router later.
      44974637
  9. Aug 26, 2009
  10. Aug 14, 2009
    • zzz's avatar
      * Console cleanups · bcd22cfb
      zzz authored
          * Router: Don't do some things when we are shutting down
          * VMCommSystem fixups
      bcd22cfb
  11. Jun 15, 2009
    • zzz's avatar
      * Reseeding / NetDb: · 7aa99493
      zzz authored
            - Move reseeding from the routerconsole app to
              the router, so that we can bootstrap an embedded router lacking a routerconsole
              (iMule or android for example), without additional modifications.
              This allows better integration between the reseeding function
              and the netDb.
            - Call reseed from PersistentDataStore, not from the
              routerconsole init, and start seeding as soon as the netdb has read
              the netDb/ directory, not when the console starts.
            - Wake up the netdb reader as soon as reseeding is done,
              rather than waiting up to 60s.
            - Don't display the reseed button on the console until the
              netdb initialization is done.
          * NetDb:
            - Fix an NPE on early shutdown
          * RouterConsoleRunner:
            - Catch a class not found error better
      7aa99493
  12. Jun 13, 2009
    • zzz's avatar
      * ConsoleRunner: · e5ec72b0
      zzz authored
            - Fix webapps file path
          * SusiDNS:
            - Fix addressbook file path
          * Systray:
            - Fix NPE if no config file
            - Fix config file path
          * WorkingDir:
            - Modify clients.config so jetty can find the jetty.xml file
            - Rip out all the existing-installation migration code
            - Rip out migration code now done by izpack parsable
            - Fix copy of empty directories
      e5ec72b0
  13. Jun 04, 2009
    • zzz's avatar
      Big directory rework. · 524a25eb
      zzz authored
      Eliminate all uses of the current working directory, and
      set up multiple directories specified by absolute paths for various uses.
      
      Add a WorkingDir class to create a user config directory and
      migrate files to it for new installs.
      The directory will be $HOME/.i2p on linux and %APPDIR%\I2P on Windows,
      or as specified in the system property -Di2p.dir.config=/path/to/i2pdir
      All files except for the base install and temp files will be
      in the config directory by default.
      Temp files will be in a i2p-xxxxx subdirectory of the system temp directory
      specified by the system property java.io.tmpdir.
      
      Convert all file opens in the code to be relative to a specific directory,
      as specified in the context. Code and applications should never open
      files relative to the current working directory (e.g. new File("foo")).
      All files should be accessed in the appropriate context directory,
      e.g. new File(_context.getAppDir(), "foo").
      
      The router.config file location may be specified as a system property on the
      java command line with -Drouter.configLocation=/path/to/router.config
      All directories may be specified as properties in the router.config file.
      
      The migration will copy all files from an existing installation,
      except i2psnark/, with the system property -Di2p.dir.migrate=true.
      Otherwise it will just set up a new directory with a minimal configuration.
      
      The migration will also create a modified wrapper.config and (on linux only)
      a modified i2prouter script, and place them in the config directory.
      
      There are no changes to the installer or the default i2prouter, i2prouter.bat,
      i2prouter, wrapper.config, runplain.sh, windows service installer/uninstaller,
      etc. in this checkin.
      
      
          *  Directories. These are all set at instantiation and will not be changed by
          *  subsequent property changes.
          *  All properties, if set, should be absolute paths.
          *
          *  Name	Property 	Method		Files
          *  -----	-------- 	-----		-----
          *  Base	i2p.dir.base	getBaseDir()	lib/, webapps/, docs/, geoip/, licenses/, ...
          *  Temp	i2p.dir.temp	getTempDir()	Temporary files
          *  Config	i2p.dir.config	getConfigDir()	*.config, hosts.txt, addressbook/, ...
          *
          *  (the following all default to the same as Config)
          *
          *  Router	i2p.dir.router	getRouterDir()	netDb/, peerProfiles/, router.*, keyBackup/, ...
          *  Log	i2p.dir.log	getLogDir()	wrapper.log*, logs/
          *  PID	i2p.dir.pid	getPIDDir()	wrapper *.pid files, router.ping
          *  App	i2p.dir.app	getAppDir()	eepsite/, ...
          *
          *  Note that we can't control where the wrapper actually puts its files.
      
      All these will be set appropriately in a Router Context.
      In an I2P App Context, all except Temp will be the current working directory.
      
      Lightly tested so far, needs much more testing.
      524a25eb
  14. Apr 08, 2009
    • zzz's avatar
      * IPV6/localhost: · 0cfbe9c2
      zzz authored
            - Enable IPv6 stack in the JVM, hopefully won't break anything
            - Patch Jetty to support binding to IPv6 addresses
            - Allow multiple bind addresses for the router console
              in the clients.config file; for new installs the
              default is now "127.0.0.1,::1"
            - Change most instances of "localhost" to "127.0.0.1"
              throughout the code
          * Router:
            - Move some classes to private static inner
      0cfbe9c2
  15. Jul 16, 2008
  16. Jun 16, 2008
    • zzz's avatar
      * RouterConsoleRunner: Use a new config file, webapps.config, · d78fb4df
      zzz authored
            to control which .wars in webapps/ get run. Apps are enabled
            by default; disable by (e.g.) webapps.syndie.startOnLoad=false
            Config file is written if it does not exist.
            Implement methods for use by upcoming configclients.jsp.
      d78fb4df
  17. Jul 15, 2007
    • complication's avatar
      2007-07-14 Complication · 4acd2996
      complication authored and zzz's avatar zzz committed
          * Take the post-download routerInfo size check back out of ReseedHandler,
            since it wasn't helpful, and a lower limit caused false warnings.
          * Give EepGet ability to enforce a min/max HTTP response size.
          * Enforce a maximum response size of 8 MB when ReseedHandler
            downloads into a ByteArrayOutputStream.
          * Refactor ReseedHandler/ReseedRunner from static to ordinary classes,
            change invocation from RouterConsoleRunner accordingly.
          * Add an EepGet status listener to ReseedHandler to log causes of reseed failure,
            provide status reports to indicate the progress of reseeding.
          * Enable icon for default eepsite, and the index page
            of the router console (more later).
      4acd2996
  18. Mar 16, 2006
    • jrandom's avatar
      2006-03-16 jrandom · 65dc803f
      jrandom authored and zzz's avatar zzz committed
          * Integrate basic hooks for jrobin (http://jrobin.org) into the router
            console.  Selected stats can be harvested automatically and fed into
            in-memory RRD databases, and those databases can be served up either as
            PNG images or as RRDtool compatible XML dumps (see oldstats.jsp for
            details).  A base set of stats are harvested by default, but an
            alternate list can be specified by setting the 'stat.summaries' list on
            the advanced config.  For instance:
            stat.summaries=bw.recvRate.60000,bw.sendRate.60000
          * HTML tweaking for the general config page (thanks void!)
          * Odd NPE fix (thanks Complication!)
      65dc803f
  19. Sep 30, 2005
    • jrandom's avatar
      2005-09-29 jrandom · 55869af2
      jrandom authored and zzz's avatar zzz committed
          * Support noreseed.i2p in addition to .i2pnoreseed for disabling automatic
            reseeding - useful on OSes that make it hard to create dot files.
            Thanks Complication (and anon)!
          * Fixed the installer version string (thanks Frontier!)
          * Added cleaner rejection of invalid IP addresses, shitlist those who send
            us invalid IP addresses, verify again that we are not sending invalid IP
            addresses, and log an error if it happens. (Thanks Complication, ptm,
            and adab!)
      55869af2
  20. Sep 29, 2005
    • jrandom's avatar
      * 2005-09-29 0.6.1 released · 848ead76
      jrandom authored and zzz's avatar zzz committed
      2005-09-29  jrandom
          * Let syndie users modify their metadata.
          * Reseed the router on startup if there aren't enough peer references
            known locally.  This can be disabled by creating the file .i2pnoreseed
            in your home directory, and the existing detection and reseed handling
            on the web interface is unchanged.
      848ead76
  21. Apr 05, 2005
    • jrandom's avatar
      2005-04-05 jrandom · bc626ece
      jrandom authored and zzz's avatar zzz committed
          * After a successfull netDb search for a leaseSet, republish it to all of
            the peers we have tried so far who did not give us the key (up to 10),
            rather than the old K closest (which may include peers who had given us
            the key)
          * Don't wait 5 minutes to publish a leaseSet (duh!), and rather than
            republish it every 5 minutes, republish it every 3.  In addition, always
            republish as soon as the leaseSet changes (duh^2).
          * Minor fix for oddball startup race (thanks travis_bickle!)
          * Minor AES update to allow in-place decryption.
      bc626ece
  22. Mar 24, 2005
    • jrandom's avatar
      2005-03-23 jrandom · 904f755c
      jrandom authored and zzz's avatar zzz committed
          * Implemented the news fetch / update policy code, as configurated on
            /configupdate.jsp.  Defaults are to grab the news every 24h (or if it
            doesn't exist yet, on startup).  No action is taken however, though if
            the news.xml specifies that a new release is available, an option to
            update will be shown on the router console.
          * New initialNews.xml delivered with new installs, and moved news.xml out
            of the i2pwww module and into the i2p module so that we can bundle it
            within each update.
      904f755c
  23. Mar 01, 2005
    • smeghead's avatar
      big code cleanup to reduce number of compiler warnings · 2d15a421
      smeghead authored and zzz's avatar zzz committed
      2d15a421
    • jrandom's avatar
      2005-03-01 jrandom · 57d6a2f6
      jrandom authored and zzz's avatar zzz committed
          * Really disable the streaming lib packet caching
          * Synchronized a message handling point in the SDK (even though its use is
            already essentially single threaded, its better to play it safe)
          * Don't add new RepublishLeaseSetJobs on failure, just requeue up the
            existing one (duh)
          * Throttle the number of concurrent pending tunnel builds across all
            pools, in addition to simply throttling the number of new requests per
            minute for each pool individually.  This should avoid the cascading
            failure when tunnel builds take too long, as no new builds will be
            created until the previous ones are handled.
          * Factored out and extended the DataHelper's unit tests for dealing with
            long and date formatting.
          * Explicitly specify the HTTP auth realm as "i2prouter", though this
            alone doesn't address the bug where jetty asks for authentication too
            much.  (thanks orion!)
          * Updated the StreamSinkServer to ignore all read bytes, rather than write
            them to the filesystem.
      57d6a2f6
  24. Feb 16, 2005
    • jrandom's avatar
      2005-02-16 jrandom · 566a713b
      jrandom authored and zzz's avatar zzz committed
          * (Merged the 0.5-pre branch back into CVS HEAD)
          * Replaced the old tunnel routing crypto with the one specified in
            router/doc/tunnel-alt.html, including updates to the web console to view
            and tweak it.
          * Provide the means for routers to reject tunnel requests with a wider
            range of responses:
              probabalistic rejection, due to approaching overload
              transient rejection, due to temporary overload
              bandwidth rejection, due to persistent bandwidth overload
              critical rejection, due to general router fault (or imminent shutdown)
            The different responses are factored into the profiles accordingly.
          * Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
            with a series of new properties, relevent to the new tunnel routing code:
              inbound.nickname (used on the console)
              inbound.quantity (# of tunnels to use in any leaseSets)
              inbound.backupQuantity (# of tunnels to keep in the ready)
              inbound.length (# of remote peers in the tunnel)
              inbound.lengthVariance (if > 0, permute the length by adding a random #
                                      up to the variance.  if < 0, permute the length
                                      by adding or subtracting a random # up to the
                                      variance)
              outbound.* (same as the inbound, except for the, uh, outbound tunnels
                          in that client's pool)
            There are other options, and more will be added later, but the above are
            the most relevent ones.
          * Replaced Jetty 4.2.21 with Jetty 5.1.2
          * Compress all profile data on disk.
          * Adjust the reseeding functionality to work even when the JVM's http proxy
            is set.
          * Enable a poor-man's interactive-flow in the streaming lib by choking the
            max window size.
          * Reduced the default streaming lib max message size to 16KB (though still
            configurable by the user), also doubling the default maximum window
            size.
          * Replaced the RouterIdentity in a Lease with its SHA256 hash.
          * Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
            the first byte of the SHA256.
          * Added a new "netId" flag to let routers drop references to other routers
            who we won't be able to talk to.
          * Extended the timestamper to get a second (or third) opinion whenever it
            wants to actually adjust the clock offset.
          * Replaced that kludge of a timestamp I2NP message with a full blown
            DateMessage.
          * Substantial memory optimizations within the router and the SDK to reduce
            GC churn.  Client apps and the streaming libs have not been tuned,
            however.
          * More bugfixes thank you can shake a stick at.
      
      2005-02-13  jrandom
          * Updated jbigi source to handle 64bit CPUs.  The bundled jbigi.jar still
            only contains 32bit versions, so build your own, placing libjbigi.so in
            your install dir if necessary.  (thanks mule!)
          * Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
            (thanks spaetz!)
      566a713b
  25. Sep 30, 2004
    • jrandom's avatar
      2004-09-30 jrandom · 6eb7ecc2
      jrandom authored and zzz's avatar zzz committed
          * Bundle the configuration necessary to run an eepsite out of the box
            with Jetty - simply edit ./eepsite/docroot/index.html and give people
            the key listed on the I2PTunnel configuration page, and its up.
      plus minor bugfixes / refactoring / logging
      6eb7ecc2
  26. Sep 29, 2004
    • jrandom's avatar
      2004-09-29 jrandom · 010b285e
      jrandom authored and zzz's avatar zzz committed
          * Always wipe the Jetty work directory on startup, so that web updates
            are reflected immediately (Jetty does not honor the cache across
            multiple executions)
      in addition, refactor various file ops out of the DataHelper into FileUtil
      010b285e
  27. Aug 29, 2004
  28. Aug 10, 2004
  29. Jul 24, 2004
Loading