Skip to content

Commit

Permalink
consolidate redundant unix function defs
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Mar 5, 2024
1 parent 34351f3 commit be3bd97
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 213 deletions.
59 changes: 0 additions & 59 deletions common/profiler/cpu_darwin.go

This file was deleted.

59 changes: 0 additions & 59 deletions common/profiler/cpu_linux.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux || darwin || freebsd

/*
Copyright NetFoundry Inc.
Expand Down
2 changes: 2 additions & 0 deletions common/profiler/cpu_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build windows

/*
Copyright NetFoundry Inc.
Expand Down
47 changes: 0 additions & 47 deletions router/monitor_darwin.go

This file was deleted.

47 changes: 0 additions & 47 deletions router/monitor_linux.go

This file was deleted.

2 changes: 2 additions & 0 deletions router/monitor_freebsd.go → router/monitor_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux || darwin || freebsd

/*
Copyright NetFoundry Inc.
Expand Down
2 changes: 2 additions & 0 deletions router/monitor_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build windows

/*
Copyright NetFoundry Inc.
Expand Down
2 changes: 1 addition & 1 deletion tunnel/intercept/tproxy/tproxy_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ import (
)

func New(config Config) (intercept.Interceptor, error) {
return nil, errors.New("tproxy not supported on darwin")
return nil, errors.New("tproxy not supported on FreeBSD")
}

0 comments on commit be3bd97

Please sign in to comment.