提交 b0dffa0f authored 作者: Thomas Mueller's avatar Thomas Mueller

When using a VPN, starting a H2 server did not work (for some VPN software).

上级 eb73ac3e
...@@ -18,7 +18,8 @@ Change Log ...@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Oracle compatibility: support for DECODE(...). <ul><li>When using a VPN, starting a H2 server did not work (for some VPN software).
</li><li>Oracle compatibility: support for DECODE(...).
</li><li>Lucene fulltext search: creating an index is now faster if the table already contains data. </li><li>Lucene fulltext search: creating an index is now faster if the table already contains data.
Thanks a lot to Angel Leon from the FrostWire Team for the patch! Thanks a lot to Angel Leon from the FrostWire Team for the patch!
</li><li>Update statements with a column list in brackets did not work if the list only contains one column. </li><li>Update statements with a column list in brackets did not work if the list only contains one column.
......
...@@ -46,12 +46,16 @@ public class NetUtils { ...@@ -46,12 +46,16 @@ public class NetUtils {
if (address == null) { if (address == null) {
address = InetAddress.getLocalHost(); address = InetAddress.getLocalHost();
} }
int test; try {
// try { return createSocket(getHostAddress(address), port, ssl);
// return createSocket(getHostAddress(address), port, ssl); } catch (IOException e) {
// } catch (IOException e) { try {
return createSocket("localhost", port, ssl); return createSocket("localhost", port, ssl);
// } } catch (IOException e2) {
// throw the original exception
throw e;
}
}
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论