Skip to content

Commit 518adc1

Browse files
authored
Merge pull request #19 from whalehub/master
Update the import paths for Caddy
2 parents 5492bf8 + 8fd57a3 commit 518adc1

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Caddy Net #
22

3-
TCP/UDP server type for [Caddy Server](https://github.com/mholt/caddy)
3+
TCP/UDP server type for [Caddy Server](https://github.com/caddyserver/caddy)
44

55
The server type is called `net`
66

@@ -49,7 +49,7 @@ This server type leverage the [tls directive](https://caddyserver.com/docs/tls)
4949

5050
## References ##
5151

52-
[Writing a Plugin: Server Type](https://github.com/mholt/caddy/wiki/Writing-a-Plugin:-Server-Type)
52+
[Writing a Plugin: Server Type](https://github.com/caddyserver/caddy/wiki/Writing-a-Plugin:-Server-Type)
5353

5454
[Caddy Forum discussion](https://caddy.community/t/writing-a-tcp-udp-server-type-for-caddy/1589)
5555

caddynet/host/host.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package host
22

33
import (
4-
"github.com/mholt/caddy"
5-
"github.com/mholt/caddy/caddytls"
4+
"github.com/caddyserver/caddy"
5+
"github.com/caddyserver/caddy/caddytls"
66
"github.com/pieterlouw/caddy-net/caddynet/netserver"
77
)
88

caddynet/netserver/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package netserver
22

3-
import "github.com/mholt/caddy/caddytls"
3+
import "github.com/caddyserver/caddy/caddytls"
44

55
// Config contains configuration details about a net server type
66
type Config struct {

caddynet/netserver/echoserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"io"
77
"net"
88

9-
"github.com/mholt/caddy"
10-
"github.com/mholt/caddy/caddytls"
9+
"github.com/caddyserver/caddy"
10+
"github.com/caddyserver/caddy/caddytls"
1111
)
1212

1313
// EchoServer is an echo implementation of the

caddynet/netserver/plugin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"log"
66
"strings"
77

8-
"github.com/mholt/caddy"
9-
"github.com/mholt/caddy/caddyfile"
10-
"github.com/mholt/caddy/caddytls"
8+
"github.com/caddyserver/caddy"
9+
"github.com/caddyserver/caddy/caddyfile"
10+
"github.com/caddyserver/caddy/caddytls"
1111
)
1212

1313
const serverType = "net"

caddynet/netserver/proxyserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"net"
77

8-
"github.com/mholt/caddy"
9-
"github.com/mholt/caddy/caddytls"
8+
"github.com/caddyserver/caddy"
9+
"github.com/caddyserver/caddy/caddytls"
1010
)
1111

1212
// ProxyServer is an implementation of the

caddynet/netserver/tls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ package netserver
33
import (
44
"fmt"
55

6-
"github.com/mholt/caddy"
7-
"github.com/mholt/caddy/caddytls"
6+
"github.com/caddyserver/caddy"
7+
"github.com/caddyserver/caddy/caddytls"
88
"github.com/mholt/certmagic"
99
)
1010

1111
// activateTLS
1212
func activateTLS(cctx caddy.Context) error {
1313
operatorPresent := !caddy.Started()
1414

15-
// Follow steps stipulated in https://github.com/mholt/caddy/wiki/Writing-a-Plugin:-Server-Type#automatic-tls (indicated below by numbered comments)
15+
// Follow steps stipulated in https://github.com/caddyserver/caddy/wiki/Writing-a-Plugin:-Server-Type#automatic-tls (indicated below by numbered comments)
1616

1717
// 1. Prints a message to stdout, "Activating privacy features..." (if the operator is present; i.e. caddy.Started() == false) because the process can take a few seconds
1818
if !caddy.Quiet && operatorPresent {

0 commit comments

Comments
 (0)