Skip to content

Commit 96eb8fa

Browse files
authored
Update client.js
1 parent 5f17f9a commit 96eb8fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/js/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@
165165

166166
// emit infos event
167167
this.socket.emit('infos', {
168-
ip : ip,
169-
port : 3389,
168+
ip : ip.indexOf(":")>-1 ? ip.split(":")[0] : ip,
169+
port : ip.indexOf(":")>-1 ? parseInt(ip.split(":")[1]) : 3389,
170170
screen : {
171171
width : this.canvas.width,
172172
height : this.canvas.height

0 commit comments

Comments
 (0)