Skip to content

Commit

Permalink
Allow setting port of LL node to -1 i.e optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapersniper committed Apr 2, 2022
1 parent c9a0971 commit e0f5998
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redbot/cogs/audio/core/commands/llset.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ async def command_llsetup_wsport(
"""Set the Lavalink node port.
This command sets the connection port which Audio will use to connect to an external Lavalink node.
Set port to -1 to disable the port and connect to the specified host via ports 80/443
"""
if port < 0 or port > 65535:
if port < 0:
port = None
elif port > 65535:
return await self.send_embed_msg(
ctx,
title=_("Setting Not Changed"),
Expand Down

0 comments on commit e0f5998

Please sign in to comment.