diff options
author | Dan Gudmundsson <[email protected]> | 2010-02-09 15:39:59 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-12 10:03:28 +0100 |
commit | 590a06126b813a306455d340f73c88ebfafce29a (patch) | |
tree | e8cadd36221a5b585edf3a0a96d4b6adb80d0437 /lib/ssl/src | |
parent | f435df0e065c06e2ae11308c0ec5a19a9ce887fa (diff) | |
download | otp-590a06126b813a306455d340f73c88ebfafce29a.tar.gz otp-590a06126b813a306455d340f73c88ebfafce29a.tar.bz2 otp-590a06126b813a306455d340f73c88ebfafce29a.zip |
Allow <c>ssl:listen/2</c> to be called with option {ssl_imp, old}.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/ssl.erl | 3 | ||||
-rw-r--r-- | lib/ssl/src/ssl_broker.erl | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index 1222fe97fd..306e3f5419 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -129,7 +129,8 @@ listen(Port, Options0) -> %% so that new and old ssl can be run by the same %% code, however the option will be ignored by old ssl %% that hardcodes reuseaddr to true in its portprogram. - Options = proplists:delete(reuseaddr, Options0), + Options1 = proplists:delete(reuseaddr, Options0), + Options = proplists:delete(ssl_imp, Options1), old_listen(Port, Options); Value -> {error, {eoptions, {ssl_imp, Value}}} diff --git a/lib/ssl/src/ssl_broker.erl b/lib/ssl/src/ssl_broker.erl index 178fb5fcb9..a7a8fe0322 100644 --- a/lib/ssl/src/ssl_broker.erl +++ b/lib/ssl/src/ssl_broker.erl @@ -333,9 +333,9 @@ init([Client, Type]) -> debug1(Debug, Type, "in start, client = ~w", [Client]), {ok, #st{brokertype = Type, server = Server, client = Client, collector = Client, debug = Debug}}; - true -> - {stop, no_ssl_server} - end. + true -> + {stop, no_ssl_server} + end. %% |