Skip to content

Commit 215e37a

Browse files
sapierPilzAdam
sapier
authored andcommittedJul 25, 2013
Show portnumber for ip adresses only
1 parent a59f85c commit 215e37a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

Diff for: ‎builtin/mainmenu.lua

+4-6
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ function menu.render_favorite(spec,render_details)
3434
else
3535
if spec.address ~= nil then
3636
text = text .. spec.address:trim()
37+
38+
if spec.port ~= nil then
39+
text = text .. ":" .. spec.port
40+
end
3741
end
3842
end
3943

40-
if spec.port ~= nil and
41-
spec.port ~= 30000 then
42-
43-
text = text .. ":" .. spec.port
44-
end
45-
4644
if not render_details then
4745
return text
4846
end

0 commit comments

Comments
 (0)
Please sign in to comment.