mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-16 12:35:54 +00:00
1. **Fixed XPadding Placement Dropdown**: - Added the missing `cookie` and `query` options to `xPaddingPlacement` (`stream_xhttp.html`). - *Why:* Previously, users wanting `cookie` obfuscation were forced to use the `header` placement string. This caused Xray-core to blindly intercept the entire monolithic HTTP Cookie header, failing internal padding-length validations and causing the inbound to silently drop the connection. 2. **Fixed Uplink Data Placement Validation**: - Replaced the unsupported `query` option with `cookie` in `uplinkDataPlacement`. - *Why:* Xray-core's `transport_internet.go` explicitly forbids `query` as an uplink placement option. Selecting it from the UI previously sent a payload that would cause Xray-core to instantly throw an `unsupported uplink data placement: query` panic. Adding `cookie` perfectly aligns the UI with Xray-core restrictions. ### Related Issues - Resolves #3992
47 lines
1.3 KiB
Go
47 lines
1.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/xtls/xray-core/common/log (interfaces: Handler)
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
log "github.com/xtls/xray-core/common/log"
|
|
)
|
|
|
|
// LogHandler is a mock of Handler interface
|
|
type LogHandler struct {
|
|
ctrl *gomock.Controller
|
|
recorder *LogHandlerMockRecorder
|
|
}
|
|
|
|
// LogHandlerMockRecorder is the mock recorder for LogHandler
|
|
type LogHandlerMockRecorder struct {
|
|
mock *LogHandler
|
|
}
|
|
|
|
// NewLogHandler creates a new mock instance
|
|
func NewLogHandler(ctrl *gomock.Controller) *LogHandler {
|
|
mock := &LogHandler{ctrl: ctrl}
|
|
mock.recorder = &LogHandlerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *LogHandler) EXPECT() *LogHandlerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Handle mocks base method
|
|
func (m *LogHandler) Handle(arg0 log.Message) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "Handle", arg0)
|
|
}
|
|
|
|
// Handle indicates an expected call of Handle
|
|
func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*LogHandler)(nil).Handle), arg0)
|
|
}
|