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

changing g:instant_rst_localhost_only has no effect #16

Open
dmmfll opened this issue Jul 15, 2016 · 4 comments
Open

changing g:instant_rst_localhost_only has no effect #16

dmmfll opened this issue Jul 15, 2016 · 4 comments

Comments

@dmmfll
Copy link

dmmfll commented Jul 15, 2016

My objective is to bind InstantRst to 0.0.0.0.

I am assuming this is achieved by setting g:instant_rst_localhost_only to 0 even though its value is 0 when I start Vim.

Perhaps I am misunderstanding Vim and/or InstantRst since I am new to both.

Steps taken:

  • open .rst document in vim

  • check value of g:instant_rst_localhost_only: :echo g:instant_rst_localhost_only

    result: 0

  • start InstantRst: :InstantRst

    result: [InstantRst] Preview buffer at http://localhost:5676

  • StopInstantRst

  • set g:instant_rst_localhost_only to 1: :let g:instant_rst_localhost_only=1

  • check value of g:instant_rst_localhost_only: :echo g:instant_rst_localhost_only

result: 1

I expected 'localhost' to be '0.0.0.0' with g:instant_rst_localhost_only equals 0 though I am getting no change when it is equal to 0 or 1.

Thanks for the really cool plugin!

@dmmfll dmmfll changed the title setting g:instant_rst_localhost_only has no effect changing g:instant_rst_localhost_only has no effect Jul 15, 2016
@dmmfll
Copy link
Author

dmmfll commented Jul 16, 2016

As it turns out even though the output is

InstantRst] Preview buffer at http://localhost:5676

when g:instant_rst_localhost_only == 0

it is still listening on 0.0.0.0

I ran netstat -tulpn | grep 5676

result was

tcp 0 0 0.0.0.0:5676 0.0.0.0:* LISTEN 23727/python2

@gu-fan
Copy link
Owner

gu-fan commented Jul 24, 2016

well, instant-rst.py have some changes. so this option may have no effects...

@dmmfll
Copy link
Author

dmmfll commented Jul 24, 2016

Thanks for clarifying. And thanks for a really amazing plugin. I use it often.

@gu-fan
Copy link
Owner

gu-fan commented Aug 3, 2016

Thanks~

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

2 participants