mirror of
https://github.com/aria2/aria2.git
synced 2025-01-24 02:31:29 +00:00
24d199632b
To cache resolved hostname: * src/AbstractCommand.h, src/AbstractCommand.cc (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause. Added dns cache. * src/FtpInitiateConnectionCommand.cc (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS. * src/NameResolver.h, src/NameResolver.cc: Added synchronized NameResolver working without ares. * src/TorrentRequestInfo.cc (execute): Don't cache dns in torrent download. * src/HttpInitiateConnectionCommand.cc (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS * src/DNSCache.h: New class. * src/UrlRequestInfo.cc (execute): Use dns cache
8 lines
119 B
Bash
Executable File
8 lines
119 B
Bash
Executable File
#!/bin/sh
|
|
|
|
a2x -f manpage aria2c.1.txt
|
|
|
|
sed 's/\(.\)\.sp/\1\n\.sp/g' aria2c.1 > aria2c.1.tmp
|
|
|
|
mv aria2c.1.tmp aria2c.1
|