Changeset 8126
- Timestamp:
- Apr 3, 2009, 3:40:37 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/rpc-spec.txt
r8124 r8126 370 370 "pex-enabled" | 'boolean' true means allow pex in public torrents 371 371 "peer-port" | number port number 372 "peer-port-random-enabled" | 'boolean' true means pick a random peer port on launch 372 373 "port-forwarding-enabled" | 'boolean' true means enabled 373 374 "rpc-version" | number the current RPC API version -
trunk/libtransmission/rpcimpl.c
r8124 r8126 971 971 if( tr_bencDictFindBool( args_in, TR_PREFS_KEY_PEX_ENABLED, &boolVal ) ) 972 972 tr_sessionSetPexEnabled( session, boolVal ); 973 if( tr_bencDictFindInt( args_in, TR_PREFS_KEY_PEER_PORT, &i ) ) 973 if( tr_bencDictFindBool( args_in, TR_PREFS_KEY_PEER_PORT_RANDOM_ENABLED, &boolVal ) && boolVal ) 974 tr_sessionSetPeerPortRandom( session ); 975 else if( tr_bencDictFindInt( args_in, TR_PREFS_KEY_PEER_PORT, &i ) ) 974 976 tr_sessionSetPeerPort( session, i ); 975 977 if( tr_bencDictFindBool( args_in, TR_PREFS_KEY_PORT_FORWARDING, &boolVal ) )
Note: See TracChangeset
for help on using the changeset viewer.