repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/visitor_plugin.go
pkg/config/v1/visitor_plugin.go
// Copyright 2025 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/proxy.go
pkg/config/v1/proxy.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/api.go
pkg/config/v1/api.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/client.go
pkg/config/v1/client.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/server_test.go
pkg/config/v1/server_test.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/proxy_plugin.go
pkg/config/v1/proxy_plugin.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/value_source.go
pkg/config/v1/value_source.go
// Copyright 2025 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/proxy_test.go
pkg/config/v1/proxy_test.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/client_test.go
pkg/config/v1/client_test.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/server.go
pkg/config/v1/server.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/visitor.go
pkg/config/v1/visitor.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/common.go
pkg/config/v1/common.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/proxy.go
pkg/config/v1/validation/proxy.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/client.go
pkg/config/v1/validation/client.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/validation.go
pkg/config/v1/validation/validation.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/validator.go
pkg/config/v1/validation/validator.go
package validation import ( "fmt" "github.com/fatedier/frp/pkg/policy/security" ) // ConfigValidator holds the context dependencies for configuration validation. type ConfigValidator struct { unsafeFeatures *security.UnsafeFeatures } // NewConfigValidator creates a new ConfigValidator instance. func NewConfigVal...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/server.go
pkg/config/v1/validation/server.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/plugin.go
pkg/config/v1/validation/plugin.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/visitor.go
pkg/config/v1/validation/visitor.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/v1/validation/common.go
pkg/config/v1/validation/common.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/types/types_test.go
pkg/config/types/types_test.go
// Copyright 2019 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/types/types.go
pkg/config/types/types.go
// Copyright 2019 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/proxy.go
pkg/config/legacy/proxy.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/client.go
pkg/config/legacy/client.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/utils.go
pkg/config/legacy/utils.go
// Copyright 2020 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/conversion.go
pkg/config/legacy/conversion.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/server.go
pkg/config/legacy/server.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/value.go
pkg/config/legacy/value.go
// Copyright 2020 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/parse.go
pkg/config/legacy/parse.go
// Copyright 2021 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/config/legacy/visitor.go
pkg/config/legacy/visitor.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/transport/message.go
pkg/transport/message.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/transport/tls.go
pkg/transport/tls.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/utils.go
pkg/nathole/utils.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/classify.go
pkg/nathole/classify.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/controller.go
pkg/nathole/controller.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/nathole.go
pkg/nathole/nathole.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/discovery.go
pkg/nathole/discovery.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/nathole/analysis.go
pkg/nathole/analysis.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/msg/msg.go
pkg/msg/msg.go
// Copyright 2016 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/msg/handler.go
pkg/msg/handler.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/msg/ctl.go
pkg/msg/ctl.go
// Copyright 2018 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/sdk/client/client.go
pkg/sdk/client/client.go
package client import ( "context" "encoding/json" "fmt" "io" "net" "net/http" "net/url" "strconv" "strings" "github.com/fatedier/frp/client" httppkg "github.com/fatedier/frp/pkg/util/http" ) type Client struct { address string authUser string authPwd string } func New(host string, port int) *Client ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/policy/security/unsafe.go
pkg/policy/security/unsafe.go
package security const ( TokenSourceExec = "TokenSourceExec" ) var ( ClientUnsafeFeatures = []string{ TokenSourceExec, } ServerUnsafeFeatures = []string{ TokenSourceExec, } ) type UnsafeFeatures struct { features map[string]bool } func NewUnsafeFeatures(allowed []string) *UnsafeFeatures { features := ma...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/pkg/policy/featuregate/feature_gate.go
pkg/policy/featuregate/feature_gate.go
// Copyright 2025 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frps/verify.go
cmd/frps/verify.go
// Copyright 2021 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frps/root.go
cmd/frps/root.go
// Copyright 2018 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frps/main.go
cmd/frps/main.go
// Copyright 2018 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/main.go
cmd/frpc/main.go
// Copyright 2016 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/sub/admin.go
cmd/frpc/sub/admin.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/sub/verify.go
cmd/frpc/sub/verify.go
// Copyright 2021 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/sub/root.go
cmd/frpc/sub/root.go
// Copyright 2018 fatedier, fatedier@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/sub/proxy.go
cmd/frpc/sub/proxy.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/cmd/frpc/sub/nathole.go
cmd/frpc/sub/nathole.go
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/e2e.go
test/e2e/e2e.go
package e2e import ( "testing" "github.com/onsi/ginkgo/v2" "github.com/onsi/gomega" "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/framework" ) var _ = ginkgo.SynchronizedBeforeSuite(func() []byte { setupSuite() return nil }, func(data []byte) { // Run on all Ginkgo nodes setupSui...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/e2e_test.go
test/e2e/e2e_test.go
package e2e import ( "flag" "fmt" "os" "testing" _ "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/util/log" // test source "github.com/fatedier/frp/test/e2e/framework" _ "github.com/fatedier/frp/test/e2e/legacy/basic" _ "github.com/fatedier/frp/test/e2e/legacy/features" _ "github.com/fatedier/fr...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/examples.go
test/e2e/examples.go
package e2e import ( "fmt" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" ) var _ = ginkgo.Describe("[Feature: Example]", func() { f := framework.NewDefaultFramework() ginkgo.Describe("TCP", func() { ginkgo.It("Expose a TCP echo ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/suites.go
test/e2e/suites.go
package e2e // CleanupSuite is the boilerplate that can be used after tests on ginkgo were run, on the SynchronizedAfterSuite step. // Similar to SynchronizedBeforeSuite, we want to run some operations only once (such as collecting cluster logs). // Here, the order of functions is reversed; first, the function which r...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/process/process.go
test/e2e/pkg/process/process.go
package process import ( "bytes" "context" "os/exec" ) type Process struct { cmd *exec.Cmd cancel context.CancelFunc errorOutput *bytes.Buffer stdOutput *bytes.Buffer beforeStopHandler func() stopped bool } func New(path string, params []string) *Process { return NewWithEnvs(path,...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/plugin/plugin.go
test/e2e/pkg/plugin/plugin.go
package plugin import ( "crypto/tls" "encoding/json" "io" "net/http" plugin "github.com/fatedier/frp/pkg/plugin/server" "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" ) type Handler func(req *plugin.Request) *plugin.Response type NewPluginRequest func() *plug...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/port/port.go
test/e2e/pkg/port/port.go
package port import ( "fmt" "net" "strconv" "sync" "k8s.io/apimachinery/pkg/util/sets" ) type Allocator struct { reserved sets.Set[int] used sets.Set[int] mu sync.Mutex } // NewAllocator return a port allocator for testing. // Example: from: 10, to: 20, mod 4, index 1 // Reserved ports: 13, 17 fun...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/port/util.go
test/e2e/pkg/port/util.go
package port import ( "fmt" "strconv" "strings" ) const ( NameDelimiter = "_" ) type NameOption func(*nameBuilder) *nameBuilder type nameBuilder struct { name string rangePortFrom int rangePortTo int } func unmarshalFromName(name string) (*nameBuilder, error) { var builder nameBuilder arrs := s...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/cert/generator.go
test/e2e/pkg/cert/generator.go
package cert import ( "crypto/tls" "crypto/x509" "encoding/pem" "time" ) // Artifacts hosts a private key, its corresponding serving certificate and // the CA certificate that signs the serving certificate. type Artifacts struct { // PEM encoded private key Key []byte // PEM encoded serving certificate Cert [...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/cert/selfsigned.go
test/e2e/pkg/cert/selfsigned.go
package cert import ( "crypto" "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "errors" "fmt" "math" "math/big" "net" "time" "k8s.io/client-go/util/cert" "k8s.io/client-go/util/keyutil" ) type SelfSignedCertGenerator struct { caKey []byte caCert []byte } var _ Generator =...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/rpc/rpc.go
test/e2e/pkg/rpc/rpc.go
package rpc import ( "bytes" "encoding/binary" "errors" "fmt" "io" ) func WriteBytes(w io.Writer, buf []byte) (int, error) { out := bytes.NewBuffer(nil) if err := binary.Write(out, binary.BigEndian, int64(len(buf))); err != nil { return 0, err } out.Write(buf) return w.Write(out.Bytes()) } func ReadByte...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/ssh/client.go
test/e2e/pkg/ssh/client.go
package ssh import ( "net" libio "github.com/fatedier/golib/io" "golang.org/x/crypto/ssh" ) type TunnelClient struct { localAddr string sshServer string commands string sshConn *ssh.Client ln net.Listener } func NewTunnelClient(localAddr string, sshServer string, commands string) *TunnelClient { ret...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/pkg/request/request.go
test/e2e/pkg/request/request.go
package request import ( "bufio" "bytes" "crypto/tls" "fmt" "io" "net" "net/http" "net/url" "strconv" "time" libnet "github.com/fatedier/golib/net" httppkg "github.com/fatedier/frp/pkg/util/http" "github.com/fatedier/frp/test/e2e/pkg/rpc" ) type Request struct { protocol string // for all protocol ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/mock/server/interface.go
test/e2e/mock/server/interface.go
package server type Server interface { Run() error Close() error BindAddr() string BindPort() int }
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/mock/server/streamserver/server.go
test/e2e/mock/server/streamserver/server.go
package streamserver import ( "bufio" "fmt" "io" "net" "strconv" libnet "github.com/fatedier/frp/pkg/util/net" "github.com/fatedier/frp/test/e2e/pkg/rpc" ) type Type string const ( TCP Type = "tcp" UDP Type = "udp" Unix Type = "unix" ) type Server struct { netType Type bindAddr string bindPor...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/mock/server/httpserver/server.go
test/e2e/mock/server/httpserver/server.go
package httpserver import ( "crypto/tls" "net" "net/http" "strconv" "time" ) type Server struct { bindAddr string bindPort int handler http.Handler l net.Listener tlsConfig *tls.Config hs *http.Server } type Option func(*Server) *Server func New(options ...Option) *Server { s := &Server...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/plugin/client.go
test/e2e/v1/plugin/client.go
package plugin import ( "crypto/tls" "fmt" "net/http" "strconv" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fatedier...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/plugin/server.go
test/e2e/v1/plugin/server.go
package plugin import ( "fmt" "time" "github.com/onsi/ginkgo/v2" plugin "github.com/fatedier/frp/pkg/plugin/server" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" pluginpkg "github.com/fatedier/frp/test/e2e/pkg/plugin" ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/basic.go
test/e2e/v1/basic/basic.go
package basic import ( "crypto/tls" "fmt" "strings" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fatedier/frp/...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/client.go
test/e2e/v1/basic/client.go
package basic import ( "context" "fmt" "strconv" "strings" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/request" ) var _ = ginkgo.Describe("[Feature: ClientManage]", func() { f := f...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/annotations.go
test/e2e/v1/basic/annotations.go
package basic import ( "fmt" "io" "net/http" "github.com/onsi/ginkgo/v2" "github.com/tidwall/gjson" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" ) var _ = ginkgo.Describe("[Feature: Annotations]", func() { f := framework.NewDefaultFramework() ginkgo.It("...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/xtcp.go
test/e2e/v1/basic/xtcp.go
package basic import ( "fmt" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/port" "github.com/fatedier/frp/test/e2e/pkg/request" ) var _ = ginkgo.Describe("[Feature: XTCP]", func() { f ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/config.go
test/e2e/v1/basic/config.go
package basic import ( "context" "fmt" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/port" ) var _ = ginkgo.Describe("[Feature: Config]", func() { f := framework.NewDefaultFramework() ginkgo...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/token_source.go
test/e2e/v1/basic/token_source.go
// Copyright 2025 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/cmd.go
test/e2e/v1/basic/cmd.go
package basic import ( "strconv" "strings" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/pkg/request" ) const ( ConfigValidStr = "syntax is ok" ) var _ = ginkgo.Describe("[Feature: Cmd]", func() { f := framework.NewDefaultFramework() ginkgo.Desc...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/server.go
test/e2e/v1/basic/server.go
package basic import ( "context" "fmt" "net" "strconv" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/port" "github.com/fatedier/frp/test/e2e/pkg/request" ) var _ = ginkgo.Describe("[Feature:...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/http.go
test/e2e/v1/basic/http.go
package basic import ( "fmt" "net/http" "net/url" "strconv" "time" "github.com/gorilla/websocket" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fatedier/frp/...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/client_server.go
test/e2e/v1/basic/client_server.go
package basic import ( "fmt" "strings" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/cert" "github.com/fatedier/frp/test/e2e/pkg/port" ) type generalTestConfigures struct { server ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/basic/tcpmux.go
test/e2e/v1/basic/tcpmux.go
package basic import ( "bufio" "fmt" "net" "net/http" "github.com/onsi/ginkgo/v2" httppkg "github.com/fatedier/frp/pkg/util/http" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/streamserver" "github.com/fatedier...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/chaos.go
test/e2e/v1/features/chaos.go
package features import ( "fmt" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" ) var _ = ginkgo.Describe("[Feature: Chaos]", func() { f := framework.NewDefaultFramework() ginkgo.It("reconnect after frps restart", func() { serverPort := f.AllocPort() serverConfigPath := f....
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/ssh_tunnel.go
test/e2e/v1/features/ssh_tunnel.go
package features import ( "crypto/tls" "fmt" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fatedier/frp/test/e2e...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/heartbeat.go
test/e2e/v1/features/heartbeat.go
package features import ( "fmt" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/framework" ) var _ = ginkgo.Describe("[Feature: Heartbeat]", func() { f := framework.NewDefaultFramework() ginkgo.It("disable application layer heartbeat", func() { serverPort := f.AllocPort() serverConf ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/bandwidth_limit.go
test/e2e/v1/features/bandwidth_limit.go
package features import ( "fmt" "strings" "time" "github.com/onsi/ginkgo/v2" plugin "github.com/fatedier/frp/pkg/plugin/server" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/streamserver" pluginpkg "github.com/f...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/group.go
test/e2e/v1/features/group.go
package features import ( "crypto/tls" "fmt" "strconv" "sync" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fa...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/real_ip.go
test/e2e/v1/features/real_ip.go
package features import ( "bufio" "crypto/tls" "fmt" "net" "net/http" "github.com/onsi/ginkgo/v2" pp "github.com/pires/go-proxyproto" "github.com/fatedier/frp/pkg/transport" "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/cons...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/v1/features/monitor.go
test/e2e/v1/features/monitor.go
package features import ( "fmt" "strings" "time" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/framework" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/request" ) var _ = ginkgo.Describe("[Feature: Monitor]", ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/cleanup.go
test/e2e/framework/cleanup.go
package framework import ( "sync" ) // CleanupActionHandle is an integer pointer type for handling cleanup action type CleanupActionHandle *int type cleanupFuncHandle struct { actionHandle CleanupActionHandle actionHook func() } var ( cleanupActionsLock sync.Mutex cleanupHookList = []cleanupFuncHandle{} )...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/request.go
test/e2e/framework/request.go
package framework import ( "bytes" "net/http" flog "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/pkg/request" ) func SpecifiedHTTPBodyHandler(body []byte) http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/mockservers.go
test/e2e/framework/mockservers.go
package framework import ( "fmt" "net/http" "os" "github.com/fatedier/frp/test/e2e/framework/consts" "github.com/fatedier/frp/test/e2e/mock/server" "github.com/fatedier/frp/test/e2e/mock/server/httpserver" "github.com/fatedier/frp/test/e2e/mock/server/streamserver" "github.com/fatedier/frp/test/e2e/pkg/port" ...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/expect.go
test/e2e/framework/expect.go
package framework import ( "github.com/onsi/gomega" ) // ExpectEqual expects the specified two are the same, otherwise an exception raises func ExpectEqual(actual any, extra any, explain ...any) { gomega.ExpectWithOffset(1, actual).To(gomega.Equal(extra), explain...) } // ExpectEqualValues expects the specified tw...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/client.go
test/e2e/framework/client.go
package framework import ( clientsdk "github.com/fatedier/frp/pkg/sdk/client" ) func (f *Framework) APIClientForFrpc(port int) *clientsdk.Client { return clientsdk.New("127.0.0.1", port) }
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/test_context.go
test/e2e/framework/test_context.go
package framework import ( "flag" "fmt" "os" ) type TestContextType struct { FRPClientPath string FRPServerPath string LogLevel string Debug bool } var TestContext TestContextType // RegisterCommonFlags registers flags common to all e2e test suites. // The flag set can be flag.CommandLine (if de...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/util.go
test/e2e/framework/util.go
package framework import ( "github.com/google/uuid" ) // RunID is a unique identifier of the e2e run. // Beware that this ID is not the same for all tests in the e2e run, because each Ginkgo node creates it separately. var RunID string func init() { RunID = uuid.NewString() }
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/log.go
test/e2e/framework/log.go
package framework import ( "fmt" "time" "github.com/onsi/ginkgo/v2" ) func nowStamp() string { return time.Now().Format(time.StampMilli) } func log(level string, format string, args ...any) { fmt.Fprintf(ginkgo.GinkgoWriter, nowStamp()+": "+level+": "+format+"\n", args...) } // Logf logs the info. func Logf(f...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/process.go
test/e2e/framework/process.go
package framework import ( "fmt" "os" "path/filepath" "time" flog "github.com/fatedier/frp/pkg/util/log" "github.com/fatedier/frp/test/e2e/pkg/process" ) // RunProcesses run multiple processes from templates. // The first template should always be frps. func (f *Framework) RunProcesses(serverTemplates []string...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/framework.go
test/e2e/framework/framework.go
package framework import ( "bytes" "fmt" "os" "path/filepath" "regexp" "strings" "text/template" "github.com/onsi/ginkgo/v2" "github.com/fatedier/frp/test/e2e/mock/server" "github.com/fatedier/frp/test/e2e/pkg/port" "github.com/fatedier/frp/test/e2e/pkg/process" ) type Options struct { TotalParallelNode...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false
fatedier/frp
https://github.com/fatedier/frp/blob/33428ab538b7c55d46c70e2f04cc153f2400cd5b/test/e2e/framework/consts/consts.go
test/e2e/framework/consts/consts.go
package consts import ( "fmt" "time" "github.com/fatedier/frp/test/e2e/pkg/port" ) const ( TestString = "frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet." DefaultTimeout = 2 * time.Second ) var ( PortServerName string PortClientAdmin string DefaultSe...
go
Apache-2.0
33428ab538b7c55d46c70e2f04cc153f2400cd5b
2026-01-07T08:35:43.420197Z
false