fix wrong substitution
This commit is contained in:
@ -33,5 +33,5 @@ Adding this to your sources.list.d will configure apt to seek updates to
|
||||
ppa.launchpad.net/i2p-maintainers from a caching proxy at the b32 address:
|
||||
```h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p```
|
||||
|
||||
deb i2p://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
|
||||
deb-src i2p://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
|
||||
deb i2phttp://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
|
||||
deb-src i2phttp://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
|
||||
|
2
main.go
2
main.go
@ -193,7 +193,7 @@ func fetch(c chan<- *Message, m *Message) {
|
||||
// TODO: Fix bug with appending to existing files
|
||||
// TODO: implement range requests if file already exists
|
||||
|
||||
realURI := strings.TrimPrefix(uri, "i2p://")
|
||||
realURI := strings.Replace(uri, "i2p://", "http://", 1)
|
||||
|
||||
resp, err := http.Get(realURI)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user