Skip to content

Commit

Permalink
use localhost for hostname, Close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Mar 3, 2016
1 parent d137ed6 commit 2f9f820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { existsSync } from 'fs';
import getProxyConfigFn from './getProxyConfig';

export default function getRule(args) {
const { cwd, port, localIP: hostname, log } = args;
const { cwd, port, log } = args;
const { config } = args.query || {};

const userRuleFile = join(cwd, 'rule.js');
Expand All @@ -15,7 +15,7 @@ export default function getRule(args) {
const getProxyConfig = getProxyConfigFn(config || 'proxy.config.js', args);
return require('./rule')({
port,
hostname,
hostname: '127.0.0.1',
getProxyConfig,
cwd,
log,
Expand Down

0 comments on commit 2f9f820

Please sign in to comment.