option to disable TCP (#3447)

This commit is contained in:
Greg Hazel
2022-08-25 19:27:11 -07:00
committed by GitHub
parent 2d26fdbe38
commit fa8b6a5e0a
12 changed files with 59 additions and 5 deletions

View File

@@ -2184,6 +2184,10 @@ static void addSessionField(tr_session const* s, tr_variant* d, tr_quark key)
tr_variantDictAddBool(d, key, s->allowsPEX());
break;
case TR_KEY_tcp_enabled:
tr_variantDictAddBool(d, key, s->allowsTCP());
break;
case TR_KEY_utp_enabled:
tr_variantDictAddBool(d, key, s->allowsUTP());
break;