piclist 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/picgo-server +4 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/bin/picgo-server
CHANGED
|
@@ -192,10 +192,13 @@ class Server {
|
|
|
192
192
|
const result = this.checkIfConfigIsValid(config)
|
|
193
193
|
if (result) {
|
|
194
194
|
this.config = config
|
|
195
|
+
if (this.config.host === '127.0.0.1') {
|
|
196
|
+
this.config.host = '0.0.0.0'
|
|
197
|
+
}
|
|
195
198
|
} else {
|
|
196
199
|
config = {
|
|
197
200
|
port: 36677,
|
|
198
|
-
host: '
|
|
201
|
+
host: '0.0.0.0',
|
|
199
202
|
enable: true
|
|
200
203
|
}
|
|
201
204
|
this.config = config
|
|
@@ -229,7 +232,6 @@ class Server {
|
|
|
229
232
|
})
|
|
230
233
|
} else {
|
|
231
234
|
if (request.headers['content-type'] && request.headers['content-type'].startsWith('multipart/form-data')) {
|
|
232
|
-
console
|
|
233
235
|
uploadMulter.any()(request, response, err => {
|
|
234
236
|
if (err) {
|
|
235
237
|
console.log('[PicList Server]', err)
|