Changeset 01e558
- Timestamp:
- 09/19/09 10:09:12 (3 years ago)
- Branches:
- master
- Children:
- 0cdd53
- Parents:
- 807469
- git-author:
- Erik Ekman <yarrick@…> (09/19/09 10:09:12)
- git-committer:
- Erik Ekman <erik@…> (02/04/12 20:34:03)
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
man/iodine.8 (modified) (1 diff)
-
src/iodine.c (modified) (2 diffs)
-
src/iodined.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
ra3757a r01e558 22 22 - Added -F option to write pidfile, based on patch from 23 23 misc at mandriva.org. Fixes #70. 24 - Allow password to be set via environment variable, fixes #77. 25 Based on patch by logix. 24 26 25 27 2009-06-01: 0.5.2 "WifiFree" -
man/iodine.8
r1137ac r01e558 255 255 These issues should be solved now, with automatic fragmentation of downstream 256 256 packets. There should be no need to set the MTU explicitly on the server. 257 .SH ENVIRONMENT 258 .SS IODINE_PASS 259 If the environment variable 260 .B IODINE_PASS 261 is set, iodine will use the value it is set to as password instead of asking 262 for one. The 263 .B -P 264 option still has preference. 265 .SS IODINED_PASS 266 If the environment variable 267 .B IODINED_PASS 268 is set, iodined will use the value it is set to as password instead of asking 269 for one. The 270 .B -P 271 option still has preference. 272 .El 257 273 .SH BUGS 258 274 File bugs at http://dev.kryo.se/iodine/ -
src/iodine.c
r807469 r01e558 48 48 static char *__progname; 49 49 #endif 50 51 #define PASSWORD_ENV_VAR "IODINE_PASS" 50 52 51 53 static void … … 261 263 } 262 264 263 if (strlen(password) == 0) 264 read_password(password, sizeof(password)); 265 if (strlen(password) == 0) { 266 if (NULL != getenv(PASSWORD_ENV_VAR)) 267 snprintf(password, sizeof(password), "%s", getenv(PASSWORD_ENV_VAR)); 268 else 269 read_password(password, sizeof(password)); 270 } 265 271 266 272 client_set_password(password); -
src/iodined.c
r7efdd0 r01e558 65 65 WSADATA wsa_data; 66 66 #endif 67 68 #define PASSWORD_ENV_VAR "IODINED_PASS" 67 69 68 70 static int running = 1; … … 1345 1347 } 1346 1348 1347 if (strlen(password) == 0) 1348 read_password(password, sizeof(password)); 1349 if (strlen(password) == 0) { 1350 if (NULL != getenv(PASSWORD_ENV_VAR)) 1351 snprintf(password, sizeof(password), "%s", getenv(PASSWORD_ENV_VAR)); 1352 else 1353 read_password(password, sizeof(password)); 1354 } 1349 1355 1350 1356 if ((tun_fd = open_tun(device)) == -1) {
Note: See TracChangeset
for help on using the changeset viewer.
