Skip to content

Commit

Permalink
chore: use localhost as address to listen on in fake-amo-server
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl committed Jan 15, 2024
1 parent 0fcf033 commit 7f2ecdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/functional/fake-amo-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// - http://addons-server.readthedocs.io/en/latest/topics/api/signing.html

import http from 'http';
import os from 'os';

const FAKE_REPLIES = [
// Upload responses, see https://addons-server.readthedocs.io/en/latest/topics/api/addons.html#upload-detail-object
Expand Down Expand Up @@ -90,7 +89,7 @@ http
process.exit(1);
}
})
.listen(8989, os.platform() === 'win32' ? '::1' : '127.0.0.1', () => {
.listen(8989, 'localhost', () => {
process.stdout.write('listening');
process.stdout.uncork();
});

0 comments on commit 7f2ecdf

Please sign in to comment.