mirror of
https://codeberg.org/spire/webrcon.git
synced 2026-06-04 01:34:06 +02:00
Update rcon.js
Added port parameter Rcon constructor
This commit is contained in:
parent
3352401b2b
commit
34a59a2f93
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ import ChangeLevel from './command/changelevel';
|
||||||
import Status from './command/status';
|
import Status from './command/status';
|
||||||
|
|
||||||
export default class Rcon {
|
export default class Rcon {
|
||||||
constructor (host, password) {
|
constructor (host, password, port = 27021) {
|
||||||
this.connection = new Connection(host, password, port = 27021);
|
this.connection = new Connection(host, password, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect () {
|
disconnect () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue