mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-10 04:21:02 +00:00
+
This commit is contained in:
parent
e01342241a
commit
7bc16a510f
@ -129,7 +129,7 @@ object connect(int uid, int port, string service) {
|
|||||||
peerport = pointerp(arg) ? (arg[2]*256 + arg[3]) : 0;
|
peerport = pointerp(arg) ? (arg[2]*256 + arg[3]) : 0;
|
||||||
if (peerport < 0) peerport = 65536 + peerport;
|
if (peerport < 0) peerport = 65536 + peerport;
|
||||||
// no support for non-AF_INET nets yet
|
// no support for non-AF_INET nets yet
|
||||||
if (peerport == SPYC_SERVICE) peerport = 0;
|
if (peerport == PSYC_SERVICE) peerport = 0;
|
||||||
# else
|
# else
|
||||||
// as long as the object names don't collide, this is okay too
|
// as long as the object names don't collide, this is okay too
|
||||||
peerport = 65536 + random(9999999);
|
peerport = 65536 + random(9999999);
|
||||||
|
Loading…
Reference in New Issue
Block a user