mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
(trunk) add hooks for disabling/enabling DHT in gtk client, qt client, and transmission-remote
This commit is contained in:
@@ -1009,6 +1009,10 @@ prefschanged( TrCore * core UNUSED,
|
||||
{
|
||||
tr_sessionSetPexEnabled( tr, pref_flag_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_DHT_ENABLED ) )
|
||||
{
|
||||
tr_sessionSetDHTEnabled( tr, pref_flag_get( key ) );
|
||||
}
|
||||
else if( !strcmp( key, TR_PREFS_KEY_RPC_PORT ) )
|
||||
{
|
||||
tr_sessionSetRPCPort( tr, pref_int_get( key ) );
|
||||
|
||||
Reference in New Issue
Block a user