Skip to content

Update agent.plist

Update agent.plist #15

Workflow file for this run

name: Test
on: [push]
jobs:
test:
name: go=${{ matrix.version }} cgo=${{ matrix.cgo }} macOS=${{ matrix.macos }}
strategy:
matrix:
version: ["1.20", "1.21"]
macos: ["latest", "12", "11"]
cgo: ["1", "0"]
runs-on: macos-${{ matrix.macos }}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
cache: false
go-version: ${{ matrix.version }}
- name: Build
run: go build -o /tmp/agent ./example/
env:
CGO_ENABLED: ${{ matrix.cgo }}
- name: Load LaunchDaemon
run: launchctl load ./example/agent.plist
- name: Test IPv4
run: echo "Hello World" | nc -w5 -4 localhost 1337 | grep "Hello World"
- name: Test IPv6
run: echo "Hello World" | nc -w5 -6 localhost 1337 | grep "Hello World"