comparison src/luan/modules/Rpc.luan @ 1596:a9ff30fb5d89

add Hosting.push_file
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 26 Mar 2021 20:10:44 -0600
parents c922446f53aa
children 8df0b80e715e
comparison
equal deleted inserted replaced
1595:e4deb32bd233 1596:a9ff30fb5d89
173 function Rpc.remote(domain) 173 function Rpc.remote(domain)
174 local socket 174 local socket
175 if Rpc.cipher_suites == nil then 175 if Rpc.cipher_suites == nil then
176 socket = Socket.new(domain,Rpc.port) 176 socket = Socket.new(domain,Rpc.port)
177 else 177 else
178 socket = IoUtils.getSSLSocketFactory().createSocket(domain,Rpc.port) 178 try
179 socket = IoUtils.getSSLSocketFactory().createSocket(domain,Rpc.port)
180 catch e
181 e.java.showCause = false
182 e.throw()
183 end
179 socket.setEnabledCipherSuites(Rpc.cipher_suites) 184 socket.setEnabledCipherSuites(Rpc.cipher_suites)
180 end 185 end
181 local call = rpc_caller(socket) 186 local call = rpc_caller(socket)
182 local mt = {} 187 local mt = {}
183 function mt.__index(_,key) 188 function mt.__index(_,key)