implement tcp and tcp+tls transports

This commit is contained in:
Christian Schwarz
2018-08-25 12:58:17 +02:00
parent 873c64ecc3
commit d677cde6d0
7 changed files with 325 additions and 41 deletions
+1 -3
View File
@@ -147,9 +147,7 @@ func (j *SourceJob) Pruner(task *Task, side PrunePolicySide, dryRun bool) (p Pru
func (j *SourceJob) serve(ctx context.Context, task *Task) {
//listener, err := j.Serve.Listen()
listener, err := net.Listen("tcp", ":8888")
listener, err := j.Serve.Listen()
if err != nil {
task.Log().WithError(err).Error("error listening")
return