Skip to content

Commit eab39a4

Browse files
committed
Added option to change query port
1 parent b510397 commit eab39a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TS3AudioBot/QueryConnection.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void Connect()
7272
{
7373
if (!tsClient.IsConnected)
7474
{
75-
tsClient.Connect(connectionData.host);
75+
tsClient.Connect(connectionData.host, connectionData.port);
7676
tsClient.Login(connectionData.user, connectionData.passwd);
7777
tsClient.UseServer(1);
7878
try { tsClient.ChangeName("TS3AudioBot"); }
@@ -192,6 +192,8 @@ public struct QueryConnectionData
192192
{
193193
[Info("the address of the TeamSpeak3 Query")]
194194
public string host;
195+
[Info("the port of the TeamSpeak3 Query", "10011")]
196+
public short port;
195197
[Info("the user for the TeamSpeak3 Query")]
196198
public string user;
197199
[Info("the password for the TeamSpeak3 Query")]

0 commit comments

Comments
 (0)