Skip to content

Commit

Permalink
Merge pull request #5 from fatedier/dev
Browse files Browse the repository at this point in the history
Release version 0.1.0
  • Loading branch information
fatedier committed Feb 28, 2016
2 parents 7030d16 + c7b0687 commit d0a5400
Show file tree
Hide file tree
Showing 26 changed files with 985 additions and 447 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ _testmain.go
# Self
bin/

# Cache
*.swp
*.swo
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sudo: false
language: go

go:
- 1.4.2
- 1.5.1

install:
- make

script:
- make test
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
export PATH := $(GOPATH)/bin:$(PATH)
export NEW_GOPATH := $(shell pwd)

all: build

build: godep frps frpc
build: godep fmt frps frpc

godep:
@go get github.com/tools/godep
godep restore

fmt:
@GOPATH=$(NEW_GOPATH) godep go fmt ./...

frps:
godep go build -o bin/frps ./cmd/frps
GOPATH=$(NEW_GOPATH) godep go build -o bin/frps ./src/frp/cmd/frps

frpc:
godep go build -o bin/frpc ./cmd/frpc
GOPATH=$(NEW_GOPATH) godep go build -o bin/frpc ./src/frp/cmd/frpc

test:
@GOPATH=$(NEW_GOPATH) godep go test ./...
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# frp

[![Build Status](https://travis-ci.org/fatedier/frp.svg)](https://travis-ci.org/fatedier/frp)

A fast reverse proxy.
67 changes: 0 additions & 67 deletions cmd/frpc/control.go

This file was deleted.

134 changes: 0 additions & 134 deletions cmd/frps/control.go

This file was deleted.

6 changes: 3 additions & 3 deletions conf/frpc.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# common是必须的section
[common]
server_addr = 127.0.0.1
bind_port = 7000
server_port = 7000
log_file = ./frpc.log
# debug, info, warn, error
log_level = info
log_level = debug
# file, console
log_way = file
log_way = console

# test1即为name
[test1]
Expand Down
4 changes: 2 additions & 2 deletions conf/frps.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ bind_addr = 0.0.0.0
bind_port = 7000
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_level = debug
# file, console
log_way = file
log_way = console

# test1即为name
[test1]
Expand Down
27 changes: 0 additions & 27 deletions pkg/models/msg.go

This file was deleted.

Loading

0 comments on commit d0a5400

Please sign in to comment.