derekcollison/nats — pull request #51 by tsujimotohiroaki (2013-05-02 07:52:07+00:00)
Title: Correct ssl option handling

Please look at this line. https://github.com/derekcollison/nats/blob/master/lib/nats/server/options.rb#L176

When the content of options[:ssl] is "false", ssl_required should be "false", too.

But In the current version, ssl_required is "true" even if the content of options[:ssl] is "false". The results of my test is below:

| config file | ssl_required |
| none | false |
| false | true |
| true | true |

I think this should be as below:

| config file | ssl_required |
| none | false |
| false | false |
| true | true |

I fixed it that ssl_required become "false" when options[:ssl] is "false".