mirror of
https://github.com/CyberL1/holesail-proxy.git
synced 2025-04-18 05:47:03 -04:00
Compare commits
No commits in common. "main" and "v1.2.0" have entirely different histories.
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -40,6 +40,6 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
uses: ncipollo/release-action@v1.15.0
|
uses: ncipollo/release-action@v1.15.0
|
||||||
with:
|
with:
|
||||||
tag: ${{ env.RELEASE_VERSION }}
|
tag: ${{ needs.create-tag.outputs.new_tag }}
|
||||||
artifacts: holesail-proxy-${{ matrix.os }}-${{ matrix.arch }}.zip
|
artifacts: holesail-proxy-${{ matrix.os }}-${{ matrix.arch }}.zip
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
22
README.md
22
README.md
@ -1,22 +0,0 @@
|
|||||||
# Holesail reverse proxy
|
|
||||||
A CLI for running holesail as a reverse proxy
|
|
||||||
|
|
||||||
# Instalation
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> Make sure you have holesail installed on your system
|
|
||||||
|
|
||||||
Windows:
|
|
||||||
```
|
|
||||||
irm https://raw.githubusercontent.com/CyberL1/holesail-proxy/main/scripts/get.ps1 | iex
|
|
||||||
```
|
|
||||||
|
|
||||||
Linux:
|
|
||||||
```
|
|
||||||
curl -fsSL https://raw.githubusercontent.com/CyberL1/holesail-proxy/main/scripts/get.sh | sh
|
|
||||||
```
|
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
1. Do `holesail-proxy up`
|
|
||||||
2. Go to `<hash>.localhost` and you'll be connected to the holesail connector after a moment
|
|
@ -2,8 +2,6 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"os/exec"
|
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
@ -20,11 +18,6 @@ var downCmd = &cobra.Command{
|
|||||||
Short: "Stop running holesail processes",
|
Short: "Stop running holesail processes",
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
if _, err := exec.LookPath("holesail"); err != nil {
|
|
||||||
fmt.Println("holesail command not found")
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
processes, err := process.Processes()
|
processes, err := process.Processes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
@ -24,11 +24,6 @@ var upCmd = &cobra.Command{
|
|||||||
Short: "Start holesail proxy",
|
Short: "Start holesail proxy",
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
if _, err := exec.LookPath("holesail"); err != nil {
|
|
||||||
fmt.Println("holesail command not found")
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd.Println("Starting proxy")
|
cmd.Println("Starting proxy")
|
||||||
|
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user