aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/server-commands/miscs/sql-command.ts2
-rw-r--r--shared/server-commands/server/server.ts6
-rw-r--r--shared/server-commands/videos/live.ts1
3 files changed, 5 insertions, 4 deletions
diff --git a/shared/server-commands/miscs/sql-command.ts b/shared/server-commands/miscs/sql-command.ts
index f163cc8c9..dbc441aba 100644
--- a/shared/server-commands/miscs/sql-command.ts
+++ b/shared/server-commands/miscs/sql-command.ts
@@ -131,7 +131,7 @@ export class SQLCommand extends AbstractCommand {
131 const dbname = 'peertube_test' + this.server.internalServerNumber 131 const dbname = 'peertube_test' + this.server.internalServerNumber
132 const username = 'peertube' 132 const username = 'peertube'
133 const password = 'peertube' 133 const password = 'peertube'
134 const host = 'localhost' 134 const host = '127.0.0.1'
135 const port = 5432 135 const port = 5432
136 136
137 this.sequelize = new Sequelize(dbname, username, password, { 137 this.sequelize = new Sequelize(dbname, username, password, {
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts
index f2ca51431..ae1395a74 100644
--- a/shared/server-commands/server/server.ts
+++ b/shared/server-commands/server/server.ts
@@ -179,9 +179,9 @@ export class PeerTubeServer {
179 this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937 179 this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937
180 this.port = 9000 + this.internalServerNumber 180 this.port = 9000 + this.internalServerNumber
181 181
182 this.url = `http://localhost:${this.port}` 182 this.url = `http://127.0.0.1:${this.port}`
183 this.host = `localhost:${this.port}` 183 this.host = `127.0.0.1:${this.port}`
184 this.hostname = 'localhost' 184 this.hostname = '127.0.0.1'
185 } 185 }
186 186
187 setUrl (url: string) { 187 setUrl (url: string) {
diff --git a/shared/server-commands/videos/live.ts b/shared/server-commands/videos/live.ts
index ee7444b64..578e6ede7 100644
--- a/shared/server-commands/videos/live.ts
+++ b/shared/server-commands/videos/live.ts
@@ -39,6 +39,7 @@ function sendRTMPStream (options: {
39 39
40 if (process.env.DEBUG) { 40 if (process.env.DEBUG) {
41 command.on('stderr', data => console.log(data)) 41 command.on('stderr', data => console.log(data))
42 command.on('stdout', data => console.log(data))
42 } 43 }
43 44
44 command.run() 45 command.run()