mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
修改包名
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"natpass/code/client/dashboard"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule"
|
||||
"natpass/code/client/rule/shell"
|
||||
"natpass/code/client/rule/vnc"
|
||||
"natpass/code/network"
|
||||
rt "runtime"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/dashboard"
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
"github.com/jkstack/natpass/code/client/rule/shell"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/kardianos/service"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule"
|
||||
"natpass/code/client/rule/shell"
|
||||
"natpass/code/client/rule/vnc"
|
||||
"natpass/code/network"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
"github.com/jkstack/natpass/code/client/rule/shell"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@ package dashboard
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule"
|
||||
"net/http"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
)
|
||||
|
||||
// Dashboard dashboard object
|
||||
|
||||
@@ -2,8 +2,9 @@ package dashboard
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"natpass/code/client/rule"
|
||||
"net/http"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
)
|
||||
|
||||
// Info information data
|
||||
|
||||
@@ -2,8 +2,9 @@ package dashboard
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"natpass/code/client/rule"
|
||||
"net/http"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
)
|
||||
|
||||
// Rules get rule list
|
||||
|
||||
@@ -3,11 +3,11 @@ package global
|
||||
import (
|
||||
"crypto/md5"
|
||||
"fmt"
|
||||
"natpass/code/utils"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/runtime"
|
||||
"github.com/lwch/yaml"
|
||||
)
|
||||
|
||||
+4
-4
@@ -3,16 +3,16 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"natpass/code/client/app"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/rule/vnc"
|
||||
"natpass/code/utils"
|
||||
"os"
|
||||
"path/filepath"
|
||||
rt "runtime"
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/app"
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/kardianos/service"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
|
||||
@@ -2,12 +2,12 @@ package pool
|
||||
|
||||
import (
|
||||
"context"
|
||||
"natpass/code/network"
|
||||
"natpass/code/utils"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@ package pool
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/network"
|
||||
"net"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package pool
|
||||
|
||||
import (
|
||||
"natpass/code/network"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package pool
|
||||
|
||||
import (
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/network"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package pool
|
||||
|
||||
import (
|
||||
"natpass/code/network"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ package pool
|
||||
|
||||
import (
|
||||
"image"
|
||||
"natpass/code/network"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
)
|
||||
|
||||
// SendVNCImage send vnc image data
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package rule
|
||||
|
||||
import (
|
||||
"natpass/code/client/pool"
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
)
|
||||
|
||||
// Link link interface
|
||||
|
||||
@@ -2,11 +2,11 @@ package shell
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/network"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -2,9 +2,10 @@ package shell
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/pool"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
)
|
||||
|
||||
// Resize resize terminal
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package shell
|
||||
|
||||
import (
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/network"
|
||||
"natpass/code/utils"
|
||||
"net/http"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
@@ -2,11 +2,11 @@ package shell
|
||||
|
||||
import (
|
||||
"io"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/network"
|
||||
"natpass/code/utils"
|
||||
"os"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
"golang.org/x/text/encoding/simplifiedchinese"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
@@ -2,13 +2,13 @@ package shell
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule"
|
||||
"net"
|
||||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -2,8 +2,8 @@ package vnc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"natpass/code/client/pool"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@ package vnc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/pool"
|
||||
"net/http"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
)
|
||||
|
||||
// Clipboard get/set clipboard
|
||||
|
||||
@@ -2,9 +2,10 @@ package vnc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/pool"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
)
|
||||
|
||||
// Ctrl change vnc rule config
|
||||
|
||||
@@ -2,12 +2,12 @@ package vnc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/network"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -9,15 +9,15 @@ import (
|
||||
"image"
|
||||
"image/draw"
|
||||
"image/jpeg"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/network"
|
||||
"natpass/code/utils"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -4,12 +4,12 @@ import (
|
||||
"bytes"
|
||||
"image"
|
||||
"image/jpeg"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule/vnc/process"
|
||||
"natpass/code/network"
|
||||
"natpass/code/utils"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/process"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package process
|
||||
|
||||
import (
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
"natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
)
|
||||
|
||||
// MouseEvent dispatch mouse event to child process
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package process
|
||||
|
||||
import (
|
||||
"natpass/code/client/rule/vnc/define"
|
||||
"syscall"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/define"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
"image/jpeg"
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
"natpass/code/utils"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
@@ -14,6 +12,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/logging"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
@@ -2,9 +2,10 @@ package process
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
)
|
||||
|
||||
// CreateWorker create worker process
|
||||
|
||||
@@ -2,14 +2,14 @@ package process
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/rule/vnc/define"
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
"os"
|
||||
"strings"
|
||||
"syscall"
|
||||
"unicode/utf16"
|
||||
"unsafe"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/define"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@ package vnc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/global"
|
||||
"natpass/code/client/pool"
|
||||
"natpass/code/client/rule"
|
||||
"natpass/code/network"
|
||||
"net"
|
||||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/global"
|
||||
"github.com/jkstack/natpass/code/client/pool"
|
||||
"github.com/jkstack/natpass/code/client/rule"
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
@@ -2,9 +2,9 @@ package vnc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/rule/vnc/worker"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/worker"
|
||||
"github.com/lwch/runtime"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ package worker
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/rule/vnc/define"
|
||||
"runtime"
|
||||
"syscall"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/define"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package worker
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
package worker
|
||||
|
||||
import (
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/rdesktop"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
@@ -3,10 +3,10 @@ package worker
|
||||
import (
|
||||
"image"
|
||||
"image/jpeg"
|
||||
"natpass/code/client/rule/vnc/vncnetwork"
|
||||
"os"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/jkstack/natpass/code/client/rule/vnc/vncnetwork"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/rdesktop"
|
||||
"github.com/lwch/runtime"
|
||||
|
||||
@@ -2,11 +2,11 @@ package global
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"natpass/code/utils"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/lwch/runtime"
|
||||
"github.com/lwch/yaml"
|
||||
)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"natpass/code/network"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"natpass/code/network"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@ package handler
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"natpass/code/network"
|
||||
"natpass/code/server/global"
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/jkstack/natpass/code/network"
|
||||
"github.com/jkstack/natpass/code/server/global"
|
||||
"github.com/lwch/logging"
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -4,14 +4,14 @@ import (
|
||||
"crypto/tls"
|
||||
"flag"
|
||||
"fmt"
|
||||
"natpass/code/server/global"
|
||||
"natpass/code/server/handler"
|
||||
"natpass/code/utils"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
rt "runtime"
|
||||
|
||||
"github.com/jkstack/natpass/code/server/global"
|
||||
"github.com/jkstack/natpass/code/server/handler"
|
||||
"github.com/jkstack/natpass/code/utils"
|
||||
"github.com/kardianos/service"
|
||||
"github.com/lwch/logging"
|
||||
"github.com/lwch/runtime"
|
||||
|
||||
Reference in New Issue
Block a user