ClancyH 最近的时间轴更新
ClancyH

ClancyH

V2EX 第 357755 号会员,加入于 2018-10-22 20:55:05 +08:00
关于用 redis 作为数据库缓存的问题
Java  •  ClancyH  •  2019-11-13 10:55:36 AM  •  最后回复来自 zarte
6
用 netty 创建的 udp 服务器获取 InetSocketAddress 为空
Java  •  ClancyH  •  2019-09-04 09:16:12 AM  •  最后回复来自 ClancyH
3
SIP 客户端在内网时,公网服务器如何发送请求给客户端
Java  •  ClancyH  •  2019-08-31 14:51:44 PM  •  最后回复来自 ClancyH
2
tomcat 解决跨域时 Access-Control-Allow-Origin 不能为*
Java  •  ClancyH  •  2019-06-05 17:52:13 PM  •  最后回复来自 wc951
10
Java 指令能加载外部 class 文件吗?
Java  •  ClancyH  •  2019-05-10 09:28:02 AM  •  最后回复来自 bduqw
8
js 中 forward 可以带已经获取的 cookie 吗
Node.js  •  ClancyH  •  2019-04-02 17:58:31 PM
ubuntu18.04 局域网无法访问的问题
Linux  •  ClancyH  •  2019-03-27 14:17:43 PM  •  最后回复来自 ClancyH
28
docker pull 失败会自动清除已下载的资源吗
Docker  •  ClancyH  •  2019-03-30 10:31:32 AM  •  最后回复来自 kingfsen
1
ClancyH 最近回复了
2019-09-04 09:16:12 +08:00
回复了 ClancyH 创建的主题 Java 用 netty 创建的 udp 服务器获取 InetSocketAddress 为空
@fanqiang07 感觉是 context 里面的 channel 没有存储地址信息,我从 datagrampacket 的 sender 方法获取到地址信息了
2019-08-31 14:51:44 +08:00
回复了 ClancyH 创建的主题 Java SIP 客户端在内网时,公网服务器如何发送请求给客户端
变相的算是解决了,主要想到 sip message 的内容是文本消息,我这边需求也只要 message 消息的传递,就直接写了一个 udp 服务器来收发消息,然后发现这是可行的
2019-08-31 09:22:45 +08:00
回复了 ClancyH 创建的主题 Java SIP 客户端在内网时,公网服务器如何发送请求给客户端
还有补充一点,设备在线的时候都会定时向服务器发送 sip message 的心跳包
2019-06-05 16:44:45 +08:00
回复了 ClancyH 创建的主题 Java tomcat 解决跨域时 Access-Control-Allow-Origin 不能为*
@wc951 其实实现不难,主要想知道为什么 tomcat 的 corsfilter 这次不生效了,看了 tomcat 的源码之后发现 tomcat 好像没有做相关处理,都不知道为什么之前没出问题了
2019-06-05 11:30:45 +08:00
回复了 ClancyH 创建的主题 Java tomcat 解决跨域时 Access-Control-Allow-Origin 不能为*
@cccy0 allow credentials 是默认值 false
2019-06-04 16:25:36 +08:00
回复了 ClancyH 创建的主题 Java tomcat 解决跨域时 Access-Control-Allow-Origin 不能为*
@choice4 allow credentials 不是默认 false 吗,我用的默认值,从请求获取 ip 在设置就是自己实现具体 filter,这个没问题,主要想知道为什么这次 tomcat 的 corsfilter 没有动态设置 origin,是使用姿势不对还是咋地
2019-06-04 16:20:08 +08:00
回复了 ClancyH 创建的主题 Java tomcat 解决跨域时 Access-Control-Allow-Origin 不能为*
@KYLINZZ 我知道,但是这个 tomcat 的 corsfilter 没有做吗?我之前用的时候没有做特殊的配置就正常的配一下 corsfilter 一样正常运行的同样是有 cookie 的
2019-05-10 08:58:47 +08:00
回复了 ClancyH 创建的主题 Java Java 指令能加载外部 class 文件吗?
ClassLoader 是代码加载,我的意思是类似-Dloader 这种 java 运行时指令加载外部 class
2019-03-27 14:17:43 +08:00
回复了 ClancyH 创建的主题 Linux ubuntu18.04 局域网无法访问的问题
解决了,前端的机器开了代理服务,三次握手失败
2019-03-27 10:56:51 +08:00
回复了 ClancyH 创建的主题 Linux ubuntu18.04 局域网无法访问的问题
@aaaaasam 内网网段是 192.168.1.0
服务绑定( netstat -ano|grep 9008 )
tcp6 0 0 192.168.1.159:9008 :::* LISTEN off (0.00/0/0)
iptables -L -n -v
Chain INPUT (policy ACCEPT 107K packets, 145M bytes)
pkts bytes target prot opt in out source destination
1050K 1400M ufw-before-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
1050K 1400M ufw-before-input all -- * * 0.0.0.0/0 0.0.0.0/0
140K 147M ufw-after-input all -- * * 0.0.0.0/0 0.0.0.0/0
139K 147M ufw-after-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
139K 147M ufw-reject-input all -- * * 0.0.0.0/0 0.0.0.0/0
139K 147M ufw-track-input all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT tcp -- * * 192.168.1.0/24 0.0.0.0/0 state NEW tcp dpt:9008

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ufw-before-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-before-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-reject-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-track-forward all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 103K packets, 74M bytes)
pkts bytes target prot opt in out source destination
988K 681M ufw-before-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
988K 681M ufw-before-output all -- * * 0.0.0.0/0 0.0.0.0/0
111K 75M ufw-after-output all -- * * 0.0.0.0/0 0.0.0.0/0
111K 75M ufw-after-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
111K 75M ufw-reject-output all -- * * 0.0.0.0/0 0.0.0.0/0
111K 75M ufw-track-output all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-after-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-logging-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-logging-input (1 references)
pkts bytes target prot opt in out source destination
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3241 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.