Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Feb 20, 2020
1 parent fa4948b commit 7dd4d2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN npm install
COPY ./website/ ./
RUN npm run build

FROM golang:1.13 as server
FROM golang:1.13.8 as server
WORKDIR /code
ENV GOOS=linux
ENV GARCH=amd64
Expand All @@ -15,6 +15,7 @@ ENV GO111MODULE=on
COPY ./go.mod ./
COPY ./go.sum ./
RUN go mod download
COPY ./proto/ ./proto/
COPY ./main.go ./main.go
COPY ./internal/ ./internal
RUN go build -o server
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Soon I hope to add the following features
docker run \
-it \
--rm \
--name wg \
--cap-add NET_ADMIN \
--device /dev/net/tun:/dev/net/tun \
-p 8000:8000/tcp \
Expand Down
3 changes: 2 additions & 1 deletion internal/services/server_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package services
import (
"context"

"github.com/place1/wg-embed/pkg/wgembed"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/config"
"github.com/place1/wg-access-server/proto/proto"
"github.com/place1/wg-embed/pkg/wgembed"
"github.com/sirupsen/logrus"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down Expand Up @@ -37,5 +37,6 @@ func (s *ServerService) Info(ctx context.Context, req *proto.InfoReq) (*proto.In
Host: stringValue(s.Config.WireGuard.ExternalAddress),
PublicKey: publicKey,
Port: int32(port),
HostVpnIp: ServerVPNIP(s.Config.VPN.CIDR).IP.String(),
}, nil
}

0 comments on commit 7dd4d2b

Please sign in to comment.