We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7e40b commit cb176c4Copy full SHA for cb176c4
1 file changed
mag2tor.cpp
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
38
39
lt::session_settings sset;
40
lt::add_torrent_params atp;
41
- int tcp_udp = 0;
+ int sess_tcp_udp = 0;
42
char *magnet_url = NULL;
43
44
for (;;) {
@@ -52,14 +52,14 @@ int main(int argc, char *argv[]) {
52
if (c == -1) break;
53
switch (c) {
54
case 'a': sset.anonymous_mode = true; break;
55
- case 't': tcp_udp |= 1; break;
56
- case 'u': tcp_udp |= 2; break;
+ case 't': sess_tcp_udp |= 1; break;
+ case 'u': sess_tcp_udp |= 2; break;
57
default: return usage(argv[0]);;
58
}
59
60
if (argc - optind != 1) return usage(argv[0]);
61
atp.url = argv[optind];
62
- switch (tcp_udp) {
+ switch (sess_tcp_udp) {
63
case 0:
64
sset.prefer_udp_trackers = false;
65
sset.enable_outgoing_tcp = true;
0 commit comments