Changeset 536
- Timestamp:
- 01/06/10 13:08:22 (2 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
configure (modified) (10 diffs)
-
src/ocat.c (modified) (3 diffs)
-
src/ocat.h (modified) (1 diff)
-
src/ocat_netdesc.c (modified) (2 diffs)
-
src/ocat_netdesc.h (modified) (3 diffs)
-
src/ocatlog.c (modified) (2 diffs)
-
src/ocatsetup.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r535 r536 1 1 * version 0.2.2 2 - separate name for connect log and pid file for OC/GC. 3 - mode detection (OC/GC) improved 2 4 - GarliCat branch merged back into trunk 3 5 - added onioncat-privatehosts.pl to trunk (written by zzz) -
trunk/configure
r535 r536 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r53 5.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r536. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.2.2.r53 5'600 PACKAGE_STRING='onioncat 0.2.2.r53 5'599 PACKAGE_VERSION='0.2.2.r536' 600 PACKAGE_STRING='onioncat 0.2.2.r536' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 … … 1261 1261 # This message is too long to be a string in the A/UX 3.1 sh. 1262 1262 cat <<_ACEOF 1263 \`configure' configures onioncat 0.2.2.r53 5to adapt to many kinds of systems.1263 \`configure' configures onioncat 0.2.2.r536 to adapt to many kinds of systems. 1264 1264 1265 1265 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1331 1331 if test -n "$ac_init_help"; then 1332 1332 case $ac_init_help in 1333 short | recursive ) echo "Configuration of onioncat 0.2.2.r53 5:";;1333 short | recursive ) echo "Configuration of onioncat 0.2.2.r536:";; 1334 1334 esac 1335 1335 cat <<\_ACEOF … … 1423 1423 if $ac_init_version; then 1424 1424 cat <<\_ACEOF 1425 onioncat configure 0.2.2.r53 51425 onioncat configure 0.2.2.r536 1426 1426 generated by GNU Autoconf 2.62 1427 1427 … … 1437 1437 running configure, to aid debugging if configure makes a mistake. 1438 1438 1439 It was created by onioncat $as_me 0.2.2.r53 5, which was1439 It was created by onioncat $as_me 0.2.2.r536, which was 1440 1440 generated by GNU Autoconf 2.62. Invocation command line was 1441 1441 … … 2086 2086 # Define the identity of the package. 2087 2087 PACKAGE='onioncat' 2088 VERSION='0.2.2.r53 5'2088 VERSION='0.2.2.r536' 2089 2089 2090 2090 … … 2237 2237 2238 2238 cat >>confdefs.h <<\_ACEOF 2239 #define SVN_REVISION "53 5"2239 #define SVN_REVISION "536" 2240 2240 _ACEOF 2241 2241 … … 5221 5221 # values after options handling. 5222 5222 ac_log=" 5223 This file was extended by onioncat $as_me 0.2.2.r53 5, which was5223 This file was extended by onioncat $as_me 0.2.2.r536, which was 5224 5224 generated by GNU Autoconf 2.62. Invocation command line was 5225 5225 … … 5274 5274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5275 5275 ac_cs_version="\\ 5276 onioncat config.status 0.2.2.r53 55276 onioncat config.status 0.2.2.r536 5277 5277 configured by $0, generated by GNU Autoconf 2.62, 5278 5278 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -
trunk/src/ocat.c
r535 r536 51 51 , CNF(version), s, 52 52 // option defaults start here 53 OCAT_DIR, OCAT_CONNECT_LOG, CNF(create_clog),53 OCAT_DIR, NDESC(clog_file), CNF(create_clog), 54 54 CNF(daemon), CNF(daemon) ^ 1, 55 55 CNF(debug_level), NDESC(listen_port), … … 276 276 int c, runasroot = 0; 277 277 struct passwd *pwd, pwdm; 278 int urlconv = 0 ;278 int urlconv = 0, mode_detect = 0; 279 279 280 280 init_setup(); 281 // detect network type by command file name 282 // FIXME: this should be not hardcoded in that way 283 // FIXME: basename() should better be used instead of strstr() 284 if (strstr(argv[0], "gcat")) 285 { 286 CNF(net_type) = NTYPE_I2P; 287 snprintf(def, 100, "127.0.0.1:%d", NDESC(listen_port)); 288 post_init_setup(); 289 mode_detect = 1; 290 } 281 291 282 292 while ((c = getopt(argc, argv, "abBCd:f:hrRiIopl:t:T:s:u:4L:P:")) != -1) … … 381 391 } 382 392 383 // detect network type by command file name 384 // FIXME: this should be not hardcoded in that way 385 if (!strcmp(argv[0], "gcat") || !strcmp(argv[0], "garlicat")) 386 CNF(net_type) = NTYPE_I2P; 387 388 snprintf(def, 100, "127.0.0.1:%d", NDESC(listen_port)); 389 post_init_setup(); 393 if (!mode_detect) 394 { 395 snprintf(def, 100, "127.0.0.1:%d", NDESC(listen_port)); 396 post_init_setup(); 397 } 390 398 391 399 // usage output must be after mode detection (Tor/I2P) -
trunk/src/ocat.h
r535 r536 117 117 #define OCAT_URL "http://www.abenteuerland.at/onioncat/" 118 118 #define OCAT_DIR ".ocat" 119 #define OCAT_CONNECT_LOG "connect_log"119 //#define OCAT_CONNECT_LOG "connect_log" 120 120 #define PID_FILE "/var/run/ocat.pid" 121 121 #define OCAT_AUTHOR "Bernhard R. Fischer" -
trunk/src/ocat_netdesc.c
r534 r536 31 31 TOR_OCAT_DEST_PORT, 32 32 TOR_SOCKS_PORT, 33 TOR_OCAT_CONNECT_LOG, 34 TOR_PID_FILE, 33 35 }, 34 36 { … … 41 43 I2P_OCAT_DEST_PORT, 42 44 I2P_SOCKS_PORT, 45 I2P_OCAT_CONNECT_LOG, 46 I2P_PID_FILE, 43 47 }, 44 48 }; -
trunk/src/ocat_netdesc.h
r534 r536 37 37 short vdest_port; 38 38 short socks_port; 39 char *clog_file; 40 char *pid_file; 39 41 }; 40 42 … … 68 70 //! SOCKS port of TOR proxy 69 71 #define TOR_SOCKS_PORT 9050 72 #define TOR_OCAT_CONNECT_LOG "ocat_connect_log" 73 #define TOR_PID_FILE "/var/run/ocat.pid" 70 74 71 75 … … 89 93 //! SOCKS port of TOR proxy 90 94 #define I2P_SOCKS_PORT 9051 95 #define I2P_OCAT_CONNECT_LOG "gcat_connect_log" 96 #define I2P_PID_FILE "/var/run/gcat.pid" 91 97 92 98 -
trunk/src/ocatlog.c
r499 r536 23 23 24 24 #include "ocat.h" 25 #include "ocat_netdesc.h" 25 26 26 27 #define TIMESTRLEN 64 … … 68 69 69 70 strlcat(buf, "/", CBUFLEN); 70 strlcat(buf, OCAT_CONNECT_LOG, CBUFLEN);71 strlcat(buf, NDESC(clog_file), CBUFLEN); 71 72 72 73 log_debug("opening connect log \"%s\"", buf); -
trunk/src/ocatsetup.c
r535 r536 174 174 snprintf(&setup_.version[strlen(setup_.version)], VERSION_STRING_LEN - strlen(setup_.version), " -- compiled %s %s", __DATE__, __TIME__); 175 175 #endif 176 setup_.pid_file = NDESC(pid_file); 176 177 } 177 178
Note: See TracChangeset
for help on using the changeset viewer.
