Aofei Sheng
Aofei Sheng
@pihao 嗯嗯,在理,而且我刚才发现他换了服务器,速度比之前只在国外的时候要快。 已更新我最开始的说法!🤓
Routing problem. I worked around this problem by adding the following line to the `startup-script`: ```bash ip -6 route add default via $(curl -fsS http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/gateway-ipv6 -H "Metadata-Flavor: Google") dev eth0...
```bash $ gcloud compute networks create archimg-issue-45 --subnet-mode custom $ gcloud compute networks subnets create archimg-issue-45 --network archimg-issue-45 --region asia-east2 --range 10.10.0.0/24 --stack-type IPV4_IPV6 --ipv6-access-type EXTERNAL $ gcloud compute firewall-rules...
> the problem arises at this point. Either the instance is not reachable at all (no internet), or `ip a s eth0` shows no external IPv6 address. For the second...
I happened to have the same problem today (`ip a s eth0` shows no external IPv6 address after `sudo reboot`) with an instance I created with `ubuntu-2204-jammy-v20220528` image. So I...
Did you successfully `go mod download` before you `go run`/`go build`?
你好,首先抱歉这么久才回复你。由于这一阵子在忙的事情有点多,所以你的这个问题我就放在了 TODO 列表里,然后不小心就忘记了回答,实在是不好意思…… 如果你希望 [goproxy.Goproxy.ProxiedSUMDBs](https://pkg.go.dev/github.com/goproxy/goproxy#Goproxy.ProxiedSUMDBs) 能够支持从 [goproxy.Cacher](https://pkg.go.dev/github.com/goproxy/goproxy#Cacher) 中存取数据,那我能告诉你的是我们并不能这样做。因为被代理的校验和数据库的内容都是可变的,所以将其缓存下来并不是一个正确的做法。 事实上,你遇到的问题很好解决,你只需要换个思路。 如果你的 [Goproxy](https://github.com/goproxy/goproxy) 服务是跑在公司内部,那么你可以为其指定好 `GOSUMDB` 环境变量,这样 [goproxy.Goproxy](https://pkg.go.dev/github.com/goproxy/goproxy#Goproxy) 在从上游代理拉取模块数据后会依据你的设置来校验它们,只有校验通过时才会存入 [goproxy.Cacher](https://pkg.go.dev/github.com/goproxy/goproxy#Cacher)。换句话说,这种情况下你存入 [goproxy.Cacher](https://pkg.go.dev/github.com/goproxy/goproxy#Cacher) 的模块数据都是 100% 可信的。此时,公司内部的员工在使用你的这个 [Goproxy](https://github.com/goproxy/goproxy) 服务时就可以放心的将他们本地自己的 `GOSUMDB` 设置为 `off` 了,因为他们从你这拉取的数据都是可信的,因此校验反倒成了多余的。 大致代码如下: ```go package...
This panic occurs whenever I download a large file (about 1 GiB). I'm curious what caused it. Any guesses?
And it's always either [mtproto.ErrBadMsgSeqNoTooLow](https://pkg.go.dev/github.com/xelaj/mtproto#ErrBadMsgSeqNoTooLow) or [mtproto.ErrBadMsgSeqNoTooHigh](https://pkg.go.dev/github.com/xelaj/mtproto#ErrBadMsgSeqNoTooHigh).
FYI: * https://github.com/LonamiWebs/Telethon/issues/195#issuecomment-331473279 * https://github.com/LonamiWebs/Telethon/commit/151e1623d3f0ed71951a73169849d6fbbeaad162 * https://github.com/LonamiWebs/Telethon/commit/12a39873f1c67b4f110a5f17dedd0e932456c293