Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The host option is not set. #217

Open
jkcjkc82 opened this issue Feb 15, 2017 · 0 comments
Open

The host option is not set. #217

jkcjkc82 opened this issue Feb 15, 2017 · 0 comments

Comments

@jkcjkc82
Copy link

jkcjkc82 commented Feb 15, 2017

I tried to bind just 127.0.0.1 to the server but It was bound as 0.0.0.0.

The following is my gulp setting.

connect.server({
        root: `${__ROOT}/${__SETTINGS.dist}`,
        host: '127.0.0.1', // not affected
        port: __SETTINGS.web.port,
        debug: true,
        livereload: {
            hostname: '127.0.0.1', // also..
            port: __SETTINGS.web.livereload.port
        },
   ...

I looked at gulp-connect source code. It seems to be solved if host value is added.

@server.listen @port, (err) =>

-->

@server.listen @port, @host, (err) =>

how do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant