projects
/
swift-upb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a6bf78
)
OS gives random port no anyway
author
Victor Grishchenko
<victor.grishchenko@gmail.com>
Wed, 12 May 2010 15:07:01 +0000
(17:07 +0200)
committer
Victor Grishchenko
<victor.grishchenko@gmail.com>
Wed, 12 May 2010 15:07:01 +0000
(17:07 +0200)
swift.cpp
patch
|
blob
|
history
diff --git
a/swift.cpp
b/swift.cpp
index
211448a
..
e391520
100644
(file)
--- a/
swift.cpp
+++ b/
swift.cpp
@@
-111,7
+111,7
@@
int main (int argc, char** argv) {
quit("cant listen to %s\n",bindaddr.str())
} else if (tracker!=Address() || http_gw!=Address()) { // leeching
for (int i=0; i<=10; i++) {
- bindaddr = Address((uint32_t)INADDR_ANY,
1024+rand()%1000
0);
+ bindaddr = Address((uint32_t)INADDR_ANY,0);
if (Listen(bindaddr)>0)
break;
if (i==10)