From 55eb07deff164c99a36d21f7a89b0824efcb13a3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 15 Dec 2008 19:30:58 +0000 Subject: [PATCH] (trunk cli) #1598: peer-port not saved correctly --- cli/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli.c b/cli/cli.c index 56ded6642..343291d21 100644 --- a/cli/cli.c +++ b/cli/cli.c @@ -511,7 +511,7 @@ parseCommandLine( tr_benc * d, int argc, const char ** argv ) case 'M': tr_bencDictAddInt( d, TR_PREFS_KEY_PORT_FORWARDING, 0 ); break; case 'n': sourceFile = optarg; break; - case 'p': tr_bencDictAddInt( d, TR_PREFS_KEY_PEER_PORT, 1 ); + case 'p': tr_bencDictAddInt( d, TR_PREFS_KEY_PEER_PORT, atoi( optarg ) ); break; case 'r': isPrivate = 1; break;