Changeset 5543
- Timestamp:
- Apr 6, 2008, 4:50:41 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/transmissioncli.c
r5517 r5543 140 140 } 141 141 142 /* don't bind the port if we're just running the CLI 143 * to get metainfo or to create a torrent */ 144 if( showInfo || ( sourceFile != NULL ) ) 145 bindPort = -1; 146 142 147 /* Initialize libtransmission */ 143 148 h = tr_initFull( tr_getDefaultConfigDir(), -
trunk/libtransmission/shared.c
r5486 r5543 111 111 } 112 112 113 if( s->bindPort != s->publicPort)113 if( ( s->publicPort > 0 ) && ( s->bindPort != s->publicPort ) ) 114 114 { 115 115 int socket; 116 116 errno = 0; 117 117 socket = tr_netBindTCP( s->publicPort ); 118 fprintf( stderr, "opening socket on %d to listen\n", s->publicPort ); 118 119 if( socket >= 0 ) { 119 120 tr_ninf( getKey(), _( "Opened port %d to listen for incoming peer connections" ), s->publicPort );
Note: See TracChangeset
for help on using the changeset viewer.