Просмотр исходного кода

Fix: typo introduced in dfc850ab

Rod Hynes 6 лет назад
Родитель
Сommit
4db6a20c82
1 измененных файлов с 12 добавлено и 12 удалено
  1. 12 12
      psiphon/common/tun/tun_unsupported.go

+ 12 - 12
psiphon/common/tun/tun_unsupported.go

@@ -46,35 +46,35 @@ func makeDeviceOutboundBuffer(_ int) []byte {
 }
 
 func OpenTunDevice(_ string) (*os.File, string, error) {
-	return nil, "", errors.Trace(errUnsupportedor)
+	return nil, "", errors.Trace(errUnsupported)
 }
 
 func (device *Device) readTunPacket() (int, int, error) {
-	return 0, 0, errors.Trace(errUnsupportedor)
+	return 0, 0, errors.Trace(errUnsupported)
 }
 
 func (device *Device) writeTunPacket(_ []byte) error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func configureNetworkConfigSubprocessCapabilities() error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func resetNATTables(_ *ServerConfig, _ net.IP) error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func configureServerInterface(_ *ServerConfig, _ string) error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func configureClientInterface(_ *ClientConfig, _ string) error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func BindToDevice(_ int, _ string) error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }
 
 func fixBindToDevice(_ common.Logger, _ bool, _ string) error {
@@ -86,15 +86,15 @@ type NonblockingIO struct {
 }
 
 func NewNonblockingIO(ioFD int) (*NonblockingIO, error) {
-	return nil, errors.Trace(errUnsupportedor)
+	return nil, errors.Trace(errUnsupported)
 }
 
 func (nio *NonblockingIO) Read(p []byte) (int, error) {
-	return 0, errors.Trace(errUnsupportedor)
+	return 0, errors.Trace(errUnsupported)
 }
 
 func (nio *NonblockingIO) Write(p []byte) (int, error) {
-	return 0, errors.Trace(errUnsupportedor)
+	return 0, errors.Trace(errUnsupported)
 }
 
 func (nio *NonblockingIO) IsClosed() bool {
@@ -102,5 +102,5 @@ func (nio *NonblockingIO) IsClosed() bool {
 }
 
 func (nio *NonblockingIO) Close() error {
-	return errors.Trace(errUnsupportedor)
+	return errors.Trace(errUnsupported)
 }