diff --git a/libtransmission/session.c b/libtransmission/session.c
index 1420c2c..9bf26aa 100644
a
|
b
|
tr_sessionInitFull( const char * configDir, |
227 | 227 | tr_proxy_type proxyType, |
228 | 228 | int proxyAuthIsEnabled, |
229 | 229 | const char * proxyUsername, |
230 | | const char * proxyPassword ) |
| 230 | const char * proxyPassword, |
| 231 | int isIPv6Enabled) |
231 | 232 | { |
232 | 233 | tr_handle * h; |
233 | 234 | char * filename; |
… |
… |
tr_sessionInitFull( const char * configDir, |
256 | 257 | h->proxyPassword = tr_strdup( proxyPassword ); |
257 | 258 | h->so_sndbuf = 1500 * 3; /* 3x MTU for most ethernet/wireless */ |
258 | 259 | h->so_rcvbuf = 8192; |
| 260 | h->isIPv6Enabled = isIPv6Enabled ? 1 : 0; |
259 | 261 | |
260 | 262 | if( configDir == NULL ) |
261 | 263 | configDir = tr_getDefaultConfigDir( ); |
… |
… |
tr_sessionInit( const char * configDir, |
341 | 343 | TR_DEFAULT_PROXY_TYPE, |
342 | 344 | TR_DEFAULT_PROXY_AUTH_ENABLED, |
343 | 345 | TR_DEFAULT_PROXY_USERNAME, |
344 | | TR_DEFAULT_PROXY_PASSWORD ); |
| 346 | TR_DEFAULT_PROXY_PASSWORD, |
| 347 | TR_DEFAULT_IPV6_ENABLED); |
345 | 348 | } |
346 | 349 | |
347 | 350 | /*** |
diff --git a/libtransmission/session.h b/libtransmission/session.h
index a721b63..b89cea4 100644
a
|
b
|
struct tr_handle |
65 | 65 | tr_bool isProxyAuthEnabled; |
66 | 66 | tr_bool isClosed; |
67 | 67 | tr_bool useLazyBitfield; |
| 68 | tr_bool isIPv6Enabled; |
68 | 69 | |
69 | 70 | tr_encryption_mode encryptionMode; |
70 | 71 | |
diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h
index 12419db..2e97d59 100644
a
|
b
|
tr_proxy_type; |
158 | 158 | #define TR_DEFAULT_PROXY_USERNAME NULL |
159 | 159 | /** @see tr_sessionInitFull */ |
160 | 160 | #define TR_DEFAULT_PROXY_PASSWORD NULL |
| 161 | /** @see tr_sessionInitFull */ |
| 162 | #define TR_DEFAULT_IPV6_ENABLED 0 |
161 | 163 | |
162 | 164 | typedef enum |
163 | 165 | { |
… |
… |
tr_encryption_mode; |
254 | 256 | * The list of IP addresses allowed to make RPC connections. |
255 | 257 | * @see tr_sessionSetRPCWhitelist() |
256 | 258 | * |
| 259 | * @param enableIPv6 |
| 260 | * If non-zero, enable IPv6 |
| 261 | * #TR_DEFAULT_IPV6_ENABLED is the default |
| 262 | * |
257 | 263 | * @see TR_DEFAULT_PEER_SOCKET_TOS |
258 | 264 | * @see TR_DEFAULT_BLOCKLIST_ENABLED |
259 | 265 | * @see TR_DEFAULT_RPC_ENABLED |
… |
… |
tr_session * tr_sessionInitFull( const char * configDir, |
292 | 298 | tr_proxy_type proxyType, |
293 | 299 | int proxyAuthIsEnabled, |
294 | 300 | const char * proxyUsername, |
295 | | const char * proxyPassword ); |
| 301 | const char * proxyPassword, |
| 302 | int isIPv6Enabled); |
296 | 303 | |
297 | 304 | |
298 | 305 | /** @brief Shorter form of tr_sessionInitFull() |