差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
pc:windows:network:ipv6:unc_path_limitation [2020/01/26 15:00] tony [How to resolve?] |
pc:windows:network:ipv6:unc_path_limitation [2020/01/26 16:20] tony |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | {{tag>ipv6 windows unc ie edge}} | ||
====== Windows上使用IPv6所遇到的UNC路徑限制 ====== | ====== Windows上使用IPv6所遇到的UNC路徑限制 ====== | ||
===== Problem ===== | ===== Problem ===== | ||
行 14: | 行 15: | ||
2001-db8-85a3-8d3-1319-8a2e-370-7348.ipv6-literal.net | 2001-db8-85a3-8d3-1319-8a2e-370-7348.ipv6-literal.net | ||
</code> | </code> | ||
+ | 除此之外,我嘗試去調整wicket的wicket-websocket-jquery.js,在建websocket之前將IPv6改為Literal IPv6 address: | ||
+ | <code javascript> | ||
+ | var ws_host_addr = document.location.hostname.replace(/[\[\]]/g, ''); | ||
+ | ws_host_addr = ws_host_addr.replace(/:/g, "-"); | ||
+ | ws_host_addr += ".ipv6-literal.net"; | ||
+ | |||
+ | url = protocol + '//' + ws_host_addr + _port + WWS.contextPath + WWS.filterPrefix + '/wicket/websocket'; | ||
+ | </code> | ||
+ | 但jetty會找不到對應的session。\\ | ||
+ | \\ | ||
+ | 目前會使用的Workaround為: | ||
+ | * 使用Literal IPv6 address去避掉這問題。 | ||
+ | * 如果User使用FQDN存取Server,也不會有這個問題。 | ||
===== Reference ===== | ===== Reference ===== | ||
* [[https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names|wiki - Literal IPv6 addresses in UNC path names]] | * [[https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names|wiki - Literal IPv6 addresses in UNC path names]] | ||
* [[https://github.com/SignalR/SignalR/issues/3875|Issue with IPv6 and IE/Edge]] | * [[https://github.com/SignalR/SignalR/issues/3875|Issue with IPv6 and IE/Edge]] | ||
* [[https://www.qutaojiao.com/19202.html|通过web控制灯泡]] | * [[https://www.qutaojiao.com/19202.html|通过web控制灯泡]] | ||
+ | * [[https://github.com/apache/wicket/blob/master/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/res/js/wicket-websocket-jquery.js|wicket-websocket-jquery.js]] | ||
+ | ===== ===== | ||
+ | ---- | ||
+ | \\ | ||
+ | ~~DISQUS~~ |