diff options
author | Hans Nilsson <[email protected]> | 2017-08-17 12:07:59 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-08-17 12:08:57 +0200 |
commit | fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962 (patch) | |
tree | d3743ae3c791d0ccf93ed75be459e8cd7053834d /lib | |
parent | 6ede2da826335960037299d9f3b0e66d072ea5a0 (diff) | |
download | otp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.tar.gz otp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.tar.bz2 otp-fac5b0637447a2f8b098dc92ff3a0b6b3cd4e962.zip |
Accept non-binary options as socket-options
For example the option {raw,6,6,<<2,0,0,0>>}
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh/src/ssh_options.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl index 7eeed70739..b41ad8b33b 100644 --- a/lib/ssh/src/ssh_options.erl +++ b/lib/ssh/src/ssh_options.erl @@ -236,7 +236,10 @@ save({Key,Value}, Defs, OptMap) when is_map(OptMap) -> %% by the check fun will give an error exception: error:{check,{BadValue,Extra}} -> error({eoptions, {Key,BadValue}, Extra}) - end. + end; +save(Opt, _Defs, OptMap) when is_map(OptMap) -> + OptMap#{socket_options := [Opt | maps:get(socket_options,OptMap)]}. + %%%================================================================ %%% |